Skip to content

Commit

Permalink
use separate golangci-lint-action to avoid compiling golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
majewsky committed Dec 26, 2022
1 parent ea1c47b commit fde4950
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: golangci-lint
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

permissions:
contents: read
pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
only-new-issues: true # on PRs, only show new issues
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: make

- name: Test
run: make check
run: make check SKIP_STATIC_CHECK=true

- name: Translate coverage report
uses: jandelgado/[email protected]
Expand Down

0 comments on commit fde4950

Please sign in to comment.