Skip to content

Commit 31eefc9

Browse files
committed
ci: add golangci-lint action
1 parent f712a5d commit 31eefc9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
golangci:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: golangci-lint
16+
uses: golangci/golangci-lint-action@v2
17+
with:
18+
# Required: the version of golangci-lint is required and must
19+
# be specified without a patch version:
20+
# we always use the latest patch version.
21+
version: v1.42
22+
args: --timeout=10m

0 commit comments

Comments
 (0)