We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c31db8d commit 9dc5e9cCopy full SHA for 9dc5e9c
.github/workflows/golangci-lint.yml
@@ -0,0 +1,27 @@
1
+name: golangci-lint
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
8
+permissions:
9
+ contents: read
10
11
+jobs:
12
+ golangci-lint:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ persist-credentials: false
19
20
+ - name: Set up Go
21
+ uses: actions/setup-go@v5
22
23
+ go-version-file: 'go.mod'
24
+ cache: true
25
26
+ - name: Launch golangci-lint
27
+ uses: golangci/golangci-lint-action@v6
script/lint
@@ -3,3 +3,5 @@
set -e
go fmt ./...
+go mod tidy
+golangci-lint run --fix
0 commit comments