File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
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 }} )
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 :
@@ -59,10 +60,14 @@ jobs:
59
60
cache-dependency-path : go.sum
60
61
61
62
- name : Run tests and check license
62
- run : make check_license test
63
+ run : |
64
+ if [ "${{ matrix.validation_scheme }}" = "local" ]; then
65
+ export GOTEST="go test -tags=localvalidationscheme"
66
+ fi
67
+ make check_license test
63
68
env :
64
69
CI : true
65
70
66
71
- name : Run style and unused
67
- if : ${{ matrix.go_version == '1.22' }}
72
+ if : ${{ matrix.go_version == '1.22' && matrix.validation_scheme == 'global' }}
68
73
run : make style unused
You can’t perform that action at this time.
0 commit comments