Skip to content

Commit c64bc61

Browse files
author
Lucas McDonald
committed
m
1 parent 8b30dcd commit c64bc61

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/shared-ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ jobs:
2424
matrix:
2525
node-version: ['18.x', '20.x', '22.x', 'latest']
2626
test-type: ['node', 'browser']
27-
test-category: ['coverage', 'vectors', 'compliance']
28-
name: test-${{ matrix.test-category }}-${{ matrix.test-type }}${{ matrix.node-version }}
27+
# Determine test categories based on whether testing published packages or source code:
28+
# - Testing published packages: only run vector tests
29+
# - Testing source code: run coverage, vector, and compliance tests
30+
test-category: ${{ fromJSON(inputs.test-published-packages == 'true' && '["vectors"]' || '["coverage", "vectors", "compliance"]') }}
31+
name: test-${{ matrix.test-category }}-${{ matrix.test-type }}-${{ matrix.node-version }}
2932
steps:
3033
- name: Checkout code
3134
# Always need repo for test scripts and configuration, even when testing published packages
@@ -70,7 +73,7 @@ jobs:
7073
7174
- name: Run compliance tests
7275
# Don't run linting or check Duvet requirements for published packages
73-
if: ${{ matrix.test-category == 'compliance' && !inputs.test-published-packages }}
76+
if: ${{ matrix.test-category == 'compliance'}}
7477
run: |
7578
npm run lint
7679
npm run test_conditions

0 commit comments

Comments
 (0)