File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,18 @@ jobs:
34
34
echo "supported_versions=$matrix" >> $GITHUB_OUTPUT
35
35
36
36
test :
37
- name : Tests (${{ matrix.go_version }})
37
+ name : Tests (${{ matrix.go_version }}, ${{ matrix.validation_scheme }} name validation scheme )
38
38
runs-on : ubuntu-latest
39
39
needs : supportedVersions
40
40
# Set fail-fast to false to ensure all Go versions are tested regardless of failures
41
41
strategy :
42
42
fail-fast : false
43
43
matrix :
44
44
go_version : ${{ fromJSON(needs.supportedVersions.outputs.supported_versions) }}
45
+ validation_scheme : ["global", "local"]
45
46
# Define concurrency at the job level for matrix jobs
46
47
concurrency :
47
- group : ${{ github.workflow }}-test-${{ matrix.go_version }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
48
+ group : ${{ github.workflow }}-test-${{ matrix.go_version }}-${{ matrix.validation_scheme }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
48
49
cancel-in-progress : true
49
50
50
51
steps :
62
63
run : make check_license test
63
64
env :
64
65
CI : true
66
+ GOOPTS : ${{ matrix.validation_scheme == 'local' && '-tags=localvalidationscheme' || '' }}
65
67
66
68
- name : Run style and unused
67
- if : ${{ matrix.go_version == '1.22' }}
69
+ if : ${{ matrix.go_version == '1.22' && matrix.validation_scheme == 'global' }}
68
70
run : make style unused
You can’t perform that action at this time.
0 commit comments