diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index a1361a0..5733880 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -16,16 +16,17 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - name: Set up Go 1.20 - uses: actions/setup-go@v4 + - name: Checkout project + uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 with: go-version: '1.20' - - uses: actions/checkout@v2 - name: golangci-lint uses: golangci/golangci-lint-action@v3.7.0 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: v1.46.2 + version: v1.55.2 # Optional: working directory, useful for monorepos # working-directory: somedir diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index c2094fc..bc3ef9a 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -16,6 +16,5 @@ jobs: go-version: ${{ matrix.go }} - name: Run tests run: | - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOROOT/bin v1.46.2 sudo sysctl -w vm.max_map_count=262144 script/integration-test diff --git a/.golangci.yaml b/.golangci.yaml index 7548cb3..c2fcfea 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -13,8 +13,8 @@ linters-settings: linters: enable: - - depguard - errcheck + - errorlint - exportloopref - gocritic - gocyclo @@ -27,14 +27,15 @@ linters: - misspell - nakedret - prealloc - - revive - staticcheck - typecheck - unconvert - unused + - revive + - reassign + - unparam disable: - gochecknoglobals # we allow global variables in packages - gochecknoinits # we allow inits in packages - goconst # we allow repeated values to go un-const'd - lll # we allow any line length - - unparam # we allow function calls to name unused parameters diff --git a/script/test b/script/test index 8fb4f03..1595fe4 100755 --- a/script/test +++ b/script/test @@ -10,5 +10,3 @@ then else go test -v github.com/github/vulcanizer/... fi - -golangci-lint -v run