Skip to content

Commit 34359a9

Browse files
committed
Update GitHub workflow matrix
Signed-off-by: Arve Knudsen <[email protected]>
1 parent 0ea35ca commit 34359a9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/go.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,18 @@ jobs:
3434
echo "supported_versions=$matrix" >> $GITHUB_OUTPUT
3535
3636
test:
37-
name: Tests (${{ matrix.go_version }})
37+
name: Tests (${{ matrix.go_version }}, ${{ matrix.validation_scheme }})
3838
runs-on: ubuntu-latest
3939
needs: supportedVersions
4040
# Set fail-fast to false to ensure all Go versions are tested regardless of failures
4141
strategy:
4242
fail-fast: false
4343
matrix:
4444
go_version: ${{ fromJSON(needs.supportedVersions.outputs.supported_versions) }}
45+
validation_scheme: ["global", "local"]
4546
# Define concurrency at the job level for matrix jobs
4647
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 }}
4849
cancel-in-progress: true
4950

5051
steps:
@@ -59,10 +60,14 @@ jobs:
5960
cache-dependency-path: go.sum
6061

6162
- 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
6368
env:
6469
CI: true
6570

6671
- name: Run style and unused
67-
if: ${{ matrix.go_version == '1.22' }}
72+
if: ${{ matrix.go_version == '1.22' && matrix.validation_scheme == 'global' }}
6873
run: make style unused

0 commit comments

Comments
 (0)