diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 998c9fc..d8004b4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,9 +2,9 @@ name: Go on: push: - branches: [ master, development ] + branches: [ master ] pull_request: - branches: [ master, development ] + branches: [ master ] jobs: @@ -12,7 +12,7 @@ jobs: strategy: matrix: - go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x] + go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.22.x] runs-on: ubuntu-latest @@ -39,6 +39,26 @@ jobs: env: GLOBALSIGN_EST_SKIP: tpm + - name: Lint + uses: golangci/golangci-lint-action@v2 + with: + # Required: the version of golangci-lint is required and must be specified + # without patch version: we always use the latest patch version. + version: v1.46 + + # Optional: golangci-lint command line arguments. + # - SA1019 reports deprecated packages + args: --exclude SA1019 + + # Optional: if set to true then the action will use pre-installed Go. + skip-go-installation: true + + # Optional: if set to true then the action don't cache or restore ~/go/pkg. + skip-pkg-cache: true + + # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. + skip-build-cache: true + build-macos: strategy: