Skip to content

Commit 7af2a80

Browse files
authored
.github/workflows: move linting to separate job (#57)
1 parent 97e095a commit 7af2a80

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,26 @@ jobs:
3737
- name: Build
3838
run: make build
3939

40-
- name: Lint
41-
uses: golangci/golangci-lint-action@v1
42-
with:
43-
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
44-
version: v1.27
45-
4640
- name: Test
4741
run: make test
4842

4943
- uses: shogo82148/actions-goveralls@v1
5044
with:
5145
path-to-profile: cover.out
5246

47+
lint:
48+
name: Lint
49+
runs-on: ubuntu-latest
50+
steps:
51+
52+
- name: Check out code into the Go module directory
53+
uses: actions/checkout@v2
54+
55+
- name: Lint
56+
uses: golangci/golangci-lint-action@v1
57+
with:
58+
version: v1.27
59+
5360
deploy:
5461
name: Deploy
5562
needs: test

0 commit comments

Comments
 (0)