diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd25dc3..ba11293 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,23 +9,14 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go: [ '1.22.x' ] + go: [ '1.24.x', '1.25.x', '1.26.x' ] os: [ ubuntu-latest, macos-latest, windows-latest ] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: ${{ matrix.go }} - - name: Cache Go modules - uses: actions/cache@v4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - name: Tidy run: go mod tidy - name: Vet @@ -33,6 +24,6 @@ jobs: - name: Build run: go build ./... - name: Test - run: go test -v + run: go test ./... -v - name: Bench (short sample) - run: go test -bench=. -benchmem || true + run: go test ./... -bench=. -benchmem || true