Skip to content

Commit f273fd9

Browse files
committed
fail on latest node version
1 parent 20e83a5 commit f273fd9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,15 @@ jobs:
2727
cache: npm
2828
- name: Install
2929
run: npm ci
30+
- name: Node version
31+
id: version
32+
run: echo "node-version=$(node -v)" >> $GITHUB_OUTPUT
3033
- name: Test
34+
id: test
3135
run: npm test
36+
continue-on-error: ${{ matrix.node-version == 'latest' }}
37+
- name: Fail
38+
if: ${{ matrix.node-version == 'latest' && steps.test.outcome != 'success' }}
39+
run: |
40+
echo "Node.js ${{ matrix.node-version }} (${{ steps.version.outputs.node-version }}) failed"
41+
exit 0

0 commit comments

Comments
 (0)