Skip to content

Commit fde4950

Browse files
committed
use separate golangci-lint-action to avoid compiling golangci-lint
1 parent ea1c47b commit fde4950

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
8+
permissions:
9+
contents: read
10+
pull-requests: read
11+
12+
jobs:
13+
golangci:
14+
name: lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/setup-go@v3
18+
with:
19+
go-version: 1.19
20+
- uses: actions/checkout@v3
21+
- name: golangci-lint
22+
uses: golangci/golangci-lint-action@v3
23+
with:
24+
version: latest
25+
only-new-issues: true # on PRs, only show new issues

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: make
2626

2727
- name: Test
28-
run: make check
28+
run: make check SKIP_STATIC_CHECK=true
2929

3030
- name: Translate coverage report
3131
uses: jandelgado/[email protected]

0 commit comments

Comments
 (0)