Skip to content

Commit

Permalink
ci(lint): show all warnings, but only fail deprecated ones
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jul 22, 2024
1 parent 8ebafcd commit 27b8f1a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,25 @@ jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
strategy:
matrix:
mode: [no-deprecations, no-failure]
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# https://github.com/golangci/golangci-lint/issues/3862#issuecomment-1572973588
- run: echo "GOROOT=$(go env GOROOT)" >> $GITHUB_ENV
- 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.49.0
args: --timeout=3m
${{ matrix.mode == 'no-deprecations' && '--exclude=^SA1019' || '' }}
${{ matrix.mode == 'no-failure' && '--issues-exit-code=0' || '' }}
# for pull requests, show only new issues
# only-new-issues: true
only-new-issues: false

0 comments on commit 27b8f1a

Please sign in to comment.