You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GO_VERSION: 1.25.x # NB! when updating also update matrix, we cannot refer to env variables in the matrix
13
+
GOLANGCI_LINT_VERSION: v2.10.1
14
+
3
15
jobs:
4
16
staticcheck:
5
17
runs-on: ubuntu-latest
6
18
steps:
7
19
- name: checkout code
8
-
uses: actions/checkout@v6.0.2
20
+
uses: actions/checkout@v6.0.2# nonpinned - official GH action
9
21
with:
10
22
fetch-depth: 0
11
23
- name: install Go
12
-
uses: actions/setup-go@v6.2.0
24
+
uses: actions/setup-go@v6.2.0# nonpinned - official GH action
13
25
with:
14
-
go-version: 1.25.x
26
+
go-version: ${{ env.GO_VERSION }}
15
27
16
28
- name: gofmt
17
29
run: if [[ -n $(gofmt -l .) ]]; then echo "please run gofmt"; exit 1; fi
@@ -25,9 +37,9 @@ jobs:
25
37
if [[ -n $(git status --porcelain) ]]; then echo "git repo is dirty after running go generate -- please don't modify generated files"; echo $(git diff);echo $(git status --porcelain); exit 1; fi
Copy file name to clipboardExpand all lines: .github/workflows/push.yml
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,18 @@ on:
3
3
branches:
4
4
- "master"
5
5
name: push_master
6
+
7
+
concurrency:
8
+
group: ${{ github.workflow }}-${{ github.ref }}
9
+
cancel-in-progress: true
10
+
11
+
permissions:
12
+
contents: read
13
+
14
+
env:
15
+
GO_VERSION: 1.25.x # NB! when updating also update matrix, we cannot refer to env variables in the matrix
16
+
GOLANGCI_LINT_VERSION: v2.10.1
17
+
6
18
jobs:
7
19
staticcheck:
8
20
runs-on: ubuntu-latest
@@ -14,7 +26,7 @@ jobs:
14
26
- name: install Go
15
27
uses: actions/setup-go@v6.2.0
16
28
with:
17
-
go-version: 1.25.x
29
+
go-version: ${{ env.GO_VERSION }}
18
30
19
31
- name: gofmt
20
32
run: if [[ -n $(gofmt -l .) ]]; then echo "please run gofmt"; exit 1; fi
@@ -28,9 +40,9 @@ jobs:
28
40
if [[ -n $(git status --porcelain) ]]; then echo "git repo is dirty after running go generate -- please don't modify generated files"; echo $(git diff);echo $(git status --porcelain); exit 1; fi
0 commit comments