Skip to content

Commit

Permalink
ci: add golangci-lint review dog
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherID committed Oct 18, 2024
1 parent 5c2bfe7 commit 2302ddb
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/test_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,24 @@ jobs:
- run: go test -v -race ./...
- run: go vet ./...

- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v6
if: github.event.name == 'pull_request'
- name: GolangCI-Lint with reviewdog
uses: reviewdog/action-golangci-lint@v2
if: github.event_name == 'pull_request'
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.github_token }}
with:
version: 'v1.60'
args: '--timeout 9999s'
only-new-issues: true
skip-cache: true
go_version: '1.22'
golangci_lint_version: 'v1.61.0'
tool_name: golangci-lint
level: info
cache: false
reporter: 'github-pr-review'
fail_on_error: true

- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v6
if: github.event.name != 'pull_request'
if: github.event_name != 'pull_request'
with:
version: 'v1.60'
version: 'v1.61.0'
args: '--timeout 9999s'
skip-cache: true

0 comments on commit 2302ddb

Please sign in to comment.