Skip to content

Commit 0c315b4

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/go.yml

Lines changed: 5 additions & 3 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 }} name 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:
@@ -62,7 +63,8 @@ jobs:
6263
run: make check_license test
6364
env:
6465
CI: true
66+
GOOPTS: ${{ matrix.validation_scheme == 'local' && '-tags=localvalidationscheme' || '' }}
6567

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

0 commit comments

Comments
 (0)