File tree 1 file changed +12
-10
lines changed
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 7
7
- main
8
8
- " release-*"
9
9
10
+ # Modified to avoid canceling all matrix jobs when one fails
11
+ # Each job type will have its own concurrency group
10
12
concurrency :
11
- group : ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
13
+ group : ${{ github.workflow }}-${{ github.job }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
12
14
cancel-in-progress : true
13
15
14
16
# Minimal permissions to be inherited by any job that don't declare it's own permissions
@@ -32,13 +34,18 @@ jobs:
32
34
echo "supported_versions=$matrix" >> $GITHUB_OUTPUT
33
35
34
36
test :
35
- name : Tests
37
+ name : Tests (${{ matrix.go_version }})
36
38
runs-on : ubuntu-latest
37
39
needs : supportedVersions
38
-
40
+ # Set fail-fast to false to ensure all Go versions are tested regardless of failures
39
41
strategy :
42
+ fail-fast : false
40
43
matrix :
41
44
go_version : ${{ fromJSON(needs.supportedVersions.outputs.supported_versions) }}
45
+ # Define concurrency at the job level for matrix jobs
46
+ concurrency :
47
+ group : ${{ github.workflow }}-test-${{ matrix.go_version }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
48
+ cancel-in-progress : true
42
49
43
50
steps :
44
51
- name : Checkout code
48
55
49
56
with :
50
57
go-version : ${{ matrix.go_version }}
51
-
52
- - name : Cache Go modules
53
- id : cache
54
- uses : actions/cache@v4
55
- with :
56
- path : ~/go/pkg/mod
57
- key : v1-go${{ matrix.go_version }}
58
+ check-latest : true
59
+ cache-dependency-path : go.sum
58
60
59
61
- name : Run tests and check license
60
62
run : make check_license test
You can’t perform that action at this time.
0 commit comments