@@ -2,8 +2,14 @@ name: Golangci-lint
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - master
5
7
pull_request :
6
8
9
+ concurrency :
10
+ group : ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress : true
12
+
7
13
permissions :
8
14
contents : read
9
15
@@ -13,49 +19,57 @@ jobs:
13
19
fail-fast : false
14
20
matrix :
15
21
include :
16
- - {os: macos-latest, GOOS: darwin, GOARCH: amd64}
17
- - {os: macos-latest, GOOS: darwin, GOARCH: arm64}
18
- - {os: ubuntu-latest, GOOS: dragonfly, GOARCH: amd64}
19
- - {os: ubuntu-latest, GOOS: freebsd, GOARCH: amd64}
20
- - {os: ubuntu-latest, GOOS: freebsd, GOARCH: 386}
21
- - {os: ubuntu-latest, GOOS: freebsd, GOARCH: arm}
22
- - {os: ubuntu-latest, GOOS: linux, GOARCH: 386}
23
- - {os: ubuntu-latest, GOOS: linux, GOARCH: amd64}
24
- - {os: ubuntu-latest, GOOS: linux, GOARCH: arm64}
25
- - {os: ubuntu-latest, GOOS: linux, GOARCH: arm}
26
- - {os: ubuntu-latest, GOOS: linux, GOARCH: mips64}
27
- - {os: ubuntu-latest, GOOS: linux, GOARCH: mips64le}
28
- - {os: ubuntu-latest, GOOS: linux, GOARCH: mips}
29
- - {os: ubuntu-latest, GOOS: linux, GOARCH: mipsle}
30
- - {os: ubuntu-latest, GOOS: linux, GOARCH: ppc64le}
31
- - {os: ubuntu-latest, GOOS: linux, GOARCH: ppc64}
32
- - {os: ubuntu-latest, GOOS: linux, GOARCH: riscv64}
33
- - {os: ubuntu-latest, GOOS: linux, GOARCH: s390x}
34
- - {os: ubuntu-latest, GOOS: netbsd, GOARCH: amd64}
35
- - {os: ubuntu-latest, GOOS: openbsd, GOARCH: 386}
36
- - {os: ubuntu-latest, GOOS: openbsd, GOARCH: amd64}
37
- - {os: ubuntu-latest, GOOS: plan9, GOARCH: amd64}
38
- - {os: ubuntu-latest, GOOS: plan9, GOARCH: 386}
39
- - {os: ubuntu-latest, GOOS: solaris, GOARCH: amd64}
40
- - {os: windows-latest, GOOS: windows, GOARCH: amd64}
41
- - {os: windows-latest, GOOS: windows, GOARCH: 386}
22
+ - {os: macos-latest, CGO_ENABLED: "0", GOOS: darwin, GOARCH: amd64}
23
+ - {os: macos-latest, CGO_ENABLED: "1", GOOS: darwin, GOARCH: amd64}
24
+ - {os: macos-latest, CGO_ENABLED: "0", GOOS: darwin, GOARCH: arm64}
25
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: aix, GOARCH: ppc64}
26
+ # - {os: ubuntu-latest, CGO_ENABLED: "1", GOOS: aix, GOARCH: ppc64} # FIXME
27
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: dragonfly, GOARCH: amd64}
28
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: freebsd, GOARCH: amd64}
29
+ # - {os: ubuntu-latest, CGO_ENABLED: "1", GOOS: freebsd, GOARCH: amd64} # FIXME
30
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: freebsd, GOARCH: 386}
31
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: freebsd, GOARCH: arm}
32
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: 386}
33
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: amd64}
34
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: arm64}
35
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: arm}
36
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: loong64}
37
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: mips64}
38
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: mips64le}
39
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: mips}
40
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: mipsle}
41
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: ppc64le}
42
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: ppc64}
43
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: riscv64}
44
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: linux, GOARCH: s390x}
45
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: netbsd, GOARCH: amd64}
46
+ - {os: ubuntu-latest, CGO_ENABLED: "1", GOOS: netbsd, GOARCH: amd64}
47
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: openbsd, GOARCH: 386}
48
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: openbsd, GOARCH: amd64}
49
+ # - {os: ubuntu-latest, CGO_ENABLED: "1", GOOS: openbsd, GOARCH: amd64} # FIXME
50
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: plan9, GOARCH: amd64}
51
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: plan9, GOARCH: 386}
52
+ - {os: ubuntu-latest, CGO_ENABLED: "0", GOOS: solaris, GOARCH: amd64}
53
+ - {os: windows-latest, CGO_ENABLED: "0", GOOS: windows, GOARCH: amd64}
54
+ - {os: windows-latest, CGO_ENABLED: "0", GOOS: windows, GOARCH: 386}
42
55
permissions :
43
56
contents : read # for actions/checkout to fetch code
44
57
pull-requests : read # for golangci/golangci-lint-action to fetch pull requests
45
58
name : lint
46
59
runs-on : ${{ matrix.os }}
47
60
env :
61
+ CGO_ENABLED : " ${{ matrix.CGO_ENABLED }}"
48
62
GOARCH : ${{ matrix.GOARCH }}
49
63
GOOS : ${{ matrix.GOOS }}
50
64
steps :
51
65
- name : Checkout repository
52
66
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53
67
- name : Setup go
54
- uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3 .0
68
+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4 .0
55
69
with :
56
70
go-version-file : go.mod
57
71
- name : Setup golangci-lint
58
- uses : golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
72
+ uses : golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
59
73
with :
60
74
args : --verbose
61
75
version : latest
0 commit comments