|
49 | 49 | strategy: |
50 | 50 | fail-fast: false |
51 | 51 | matrix: |
52 | | - node-version: ['18', '20', '22'] |
| 52 | + node-version: ['18', '20', '22', 'latest'] |
53 | 53 | test-type: ['node', 'browser'] |
54 | 54 | test-category: ['coverage', 'vectors'] |
55 | 55 | name: test-${{ matrix.test-category }}-${{ matrix.test-type }}${{ matrix.node-version }} |
@@ -81,25 +81,16 @@ jobs: |
81 | 81 | if: ${{ !inputs.test-published-packages }} |
82 | 82 | run: npm run build |
83 | 83 |
|
84 | | - - name: Run ${{ matrix.test-category }} tests (${{ matrix.test-type }}) |
85 | | - run: | |
86 | | - # Skip coverage tests when testing published packages |
87 | | - if [ "${{ inputs.test-published-packages }}" = "true" ] && [ "${{ matrix.test-category }}" = "coverage" ]; then |
88 | | - echo "Skipping coverage tests for published packages validation" |
89 | | - exit 0 |
90 | | - fi |
| 84 | + - name: Run coverage tests (${{ matrix.test-type }}) |
| 85 | + if: ${{ matrix.test-category == 'coverage' }} |
| 86 | + run: npm run coverage-${{ matrix.test-type }} |
| 87 | + |
| 88 | + - name: Publish locally for vector tests |
| 89 | + if: ${{ matrix.test-category == 'vectors' && !inputs.test-published-packages }} |
| 90 | + run: npm run verdaccio-publish |
91 | 91 |
|
92 | | - # Run the appropriate test |
93 | | - if [ "${{ matrix.test-category }}" = "coverage" ]; then |
94 | | - npm run coverage-${{ matrix.test-type }} |
95 | | - elif [ "${{ matrix.test-category }}" = "vectors" ]; then |
96 | | - # Only publish locally when testing source code |
97 | | - if [ "${{ inputs.test-published-packages }}" != "true" ]; then |
98 | | - npm run verdaccio-publish |
99 | | - fi |
100 | | - npm run verdaccio-${{ matrix.test-type }}-decrypt |
101 | | - npm run verdaccio-${{ matrix.test-type }}-encrypt |
102 | | - else |
103 | | - echo "Error: Unrecognized test category '${{ matrix.test-category }}'" |
104 | | - exit 1 |
105 | | - fi |
| 92 | + - name: Run vector tests (${{ matrix.test-type }}) |
| 93 | + if: ${{ matrix.test-category == 'vectors' }} |
| 94 | + run: | |
| 95 | + npm run verdaccio-${{ matrix.test-type }}-decrypt |
| 96 | + npm run verdaccio-${{ matrix.test-type }}-encrypt |
0 commit comments