File tree 2 files changed +25
-11
lines changed
2 files changed +25
-11
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
20
17
- name : Setup go
21
18
uses : actions/setup-go@v5
22
19
with :
23
- go-version-file : go.mod
20
+ go-version-file : ./ go.mod
24
21
25
22
- name : Setup Mage
26
23
uses : magefile/mage-action@v3
@@ -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 : golangci-lint
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+
8
+ permissions :
9
+ contents : read
10
+
11
+ jobs :
12
+ lint-go :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - uses : actions/setup-go@v5
17
+ with :
18
+ go-version-file : ./go.mod
19
+ - name : golangci-lint
20
+ uses : golangci/golangci-lint-action@v6
21
+ with :
22
+ version : v1.61.0
23
+ skip-cache : true
24
+ install-mode : binary
You can’t perform that action at this time.
0 commit comments