diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dfbe459..beb7647 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: env: # Go version we currently use to build containerd across all CI. # Note: don't forget to update `Binaries` step, as it contains the matrix of all supported Go versions. - GO_VERSION: "1.21.0" + GO_VERSION: "1.22.8" permissions: # added using https://github.com/step-security/secure-workflows contents: read @@ -29,18 +29,18 @@ jobs: strategy: matrix: - os: [ubuntu-22.04, macos-12] # TODO: Add windows-2019 + os: [ubuntu-22.04, macos-13] # TODO: Add windows-2019 steps: - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} cache: false # see actions/setup-go#368 - - uses: actions/checkout@v3 - - uses: golangci/golangci-lint-action@v3 + - uses: actions/checkout@v4 + - uses: golangci/golangci-lint-action@v6 with: - version: v1.52.2 + version: v1.61.0 skip-cache: true args: --timeout=5m @@ -54,12 +54,12 @@ jobs: timeout-minutes: 5 steps: - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} cache: false # see actions/setup-go#368 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: src/github.com/containerd/plugin fetch-depth: 25 @@ -75,11 +75,11 @@ jobs: timeout-minutes: 5 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: path: src/github.com/containerd/plugin - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} diff --git a/.golangci.yml b/.golangci.yml index a695775..d574fe1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ linters: enable: - - exportloopref # Checks for pointers to enclosing loop variables + - copyloopvar - gofmt - goimports - gosec @@ -12,14 +12,16 @@ linters: - tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17 - unconvert - unused - - vet + - govet - dupword # Checks for duplicate words in the source code disable: - errcheck run: timeout: 5m - skip-dirs: + +issues: + exclude-dirs: - api - cluster - design