File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments