File tree 2 files changed +29
-10
lines changed
2 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
pull_request :
8
8
9
- env :
10
- GOLANGCI_LINT_VERSION : v1.61.0
11
-
12
9
jobs :
13
10
build-lint-test :
14
11
name : CI
@@ -32,17 +29,10 @@ jobs:
32
29
sudo apt update
33
30
sudo apt install -y gcc
34
31
35
- - name : Setup CI Linter
36
- run : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${{env.GOLANGCI_LINT_VERSION}}
37
-
38
32
- name : Build
39
33
run : |
40
34
mage -v build
41
35
42
- - name : Lint
43
- run : |
44
- mage -v lint
45
-
46
36
- name : Test
47
37
run : |
48
38
CGO_ENABLED=1 mage -v testRace
Original file line number Diff line number Diff line change
1
+ name : Lint Go
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+
8
+ permissions :
9
+ contents : read
10
+
11
+ env :
12
+ GOLANGCI_LINT_VERSION : v1.61.0
13
+ jobs :
14
+ lint-go :
15
+ name : Lint Go
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-go@v5
20
+ with :
21
+ go-version-file : ./go.mod
22
+ - name : Run golangci-lint
23
+ uses : golangci/golangci-lint-action@v6
24
+ with :
25
+ version : ${{env.GOLANGCI_LINT_VERSION}}
26
+ args : |
27
+ "./..." --timeout=7m
28
+ skip-cache : true
29
+ install-mode : binary
You can’t perform that action at this time.
0 commit comments