diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 0410ec21..93372276 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -20,12 +20,13 @@ jobs: name: lint runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.18 - - uses: actions/checkout@v3 + go-version-file: go.mod + cache: true + cache-dependency-path: go.sum - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - 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.29 \ No newline at end of file + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.3 + - name: Run golangci-lint + run: golangci-lint run --version --verbose --out-format=github-actions \ No newline at end of file