diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86ac153d..1e1a57f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ jobs: build: strategy: matrix: - go-version: [1.20.x, 1.21.x] + go-version: [1.21.x, 1.22.x] platform: [windows-latest] runs-on: ${{ matrix.platform }} steps: @@ -21,10 +21,11 @@ jobs: run: | $env:GH_ACTION="TRUE" go test -v -race ./mount/... + test: strategy: matrix: - go-version: [1.20.x, 1.21.x] + go-version: [1.21.x, 1.22.x] platform: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.platform }} steps: @@ -37,10 +38,11 @@ jobs: - name: Test run: | make test + verify-go-directive: strategy: matrix: - go-version: [1.20.x, 1.21.x] + go-version: [1.21.x, 1.22.x] platform: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.platform }} steps: @@ -53,6 +55,7 @@ jobs: - name: Verify go directive run: | make verify-go-directive + lint: runs-on: ubuntu-latest steps: @@ -65,6 +68,7 @@ jobs: docker run --rm -v `pwd`:/go/src/k8s.io/klog -w /go/src/k8s.io/klog \ golangci/golangci-lint:v1.51.2 golangci-lint run --disable-all -v \ -E govet -E misspell -E gofmt -E ineffassign -E golint + apidiff: runs-on: ubuntu-latest if: github.base_ref @@ -72,7 +76,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: 1.21.x + go-version: 1.22.x - name: Add GOBIN to PATH run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Install dependencies diff --git a/go.mod b/go.mod index c43366fc..a44234d0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module k8s.io/utils -go 1.18 +go 1.21.0 require ( github.com/davecgh/go-spew v1.1.1