File tree 2 files changed +21
-35
lines changed
2 files changed +21
-35
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
pull_request :
8
8
9
+ permissions :
10
+ contents : read
11
+
12
+ env :
13
+ GOLANGCI_LINT_VERSION : v1.61.0
14
+
9
15
jobs :
10
- build- lint-test :
11
- name : CI
16
+ lint-build -test :
17
+ name : Lint, Build, and Test
12
18
runs-on : ubuntu-latest
13
19
steps :
14
20
- name : Checkout
@@ -19,20 +25,29 @@ jobs:
19
25
with :
20
26
go-version-file : ./go.mod
21
27
28
+ - name : Run golangci-lint
29
+ uses : golangci/golangci-lint-action@v6
30
+ with :
31
+ version : ${{env.GOLANGCI_LINT_VERSION}}
32
+ args : |
33
+ "./..." --timeout=7m
34
+ skip-cache : true
35
+ install-mode : binary
36
+
22
37
- name : Setup Mage
23
38
uses : magefile/mage-action@v3
24
39
with :
25
40
install-only : true
26
41
42
+ - name : Build
43
+ run : |
44
+ mage -v build
45
+
27
46
- name : Install test dependencies
28
47
run : |
29
48
sudo apt update
30
49
sudo apt install -y gcc
31
50
32
- - name : Build
33
- run : |
34
- mage -v build
35
-
36
51
- name : Test
37
52
run : |
38
53
CGO_ENABLED=1 mage -v testRace
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments