Skip to content

Commit 9b96e91

Browse files
author
Lucas McDonald
committed
m
1 parent e435e39 commit 9b96e91

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed

.github/workflows/shared-ci.yml

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
strategy:
5050
fail-fast: false
5151
matrix:
52-
node-version: ['18', '20', '22']
52+
node-version: ['18', '20', '22', 'latest']
5353
test-type: ['node', 'browser']
5454
test-category: ['coverage', 'vectors']
5555
name: test-${{ matrix.test-category }}-${{ matrix.test-type }}${{ matrix.node-version }}
@@ -81,25 +81,16 @@ jobs:
8181
if: ${{ !inputs.test-published-packages }}
8282
run: npm run build
8383

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
9191

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

Comments
 (0)