Skip to content

Commit 2d6f790

Browse files
committed
use a separate job for golangci-lint action
As suggested in [project documentation](https://github.com/golangci/golangci-lint-action/blob/master/README.md) and discussed in [#23](golangci/golangci-lint-action#23).
1 parent 4415421 commit 2d6f790

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ on:
77
branches: [ master ]
88

99
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-18.04
13+
steps:
14+
- name: Check out code
15+
uses: actions/checkout@v2
16+
17+
- name: Check code quality
18+
uses: golangci/golangci-lint-action@v1
19+
with:
20+
version: v1.27
1021

1122
build:
1223
name: Build
@@ -37,7 +48,3 @@ jobs:
3748
make test
3849
make build
3950
40-
- name: Check code quality
41-
uses: golangci/golangci-lint-action@v1
42-
with:
43-
version: v1.27

0 commit comments

Comments
 (0)