We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ec2983 commit 26ea41aCopy full SHA for 26ea41a
.github/workflows/lint-code.yml
@@ -0,0 +1,37 @@
1
+name: Lint code
2
+
3
+on:
4
+ push:
5
+ paths:
6
+ - ".github/workflows/lint-code.yml"
7
+ - "Taskfile.yml"
8
+ - "go.mod"
9
+ - "go.sum"
10
+ - "**/*.go"
11
+ pull_request:
12
13
14
15
16
17
18
19
+jobs:
20
+ lint:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - name: Checkout local repository
24
+ uses: actions/checkout@v2
25
26
+ - name: Install Taskfile
27
+ uses: arduino/actions/setup-taskfile@master
28
+ with:
29
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
30
+ version: 3.x
31
32
+ - name: Install golint
33
+ run: |
34
+ go get golang.org/x/lint/golint
35
36
+ - name: Lint Go code
37
+ run: task go:lint
0 commit comments