Skip to content

Commit

Permalink
👷 github actions improvement related to nodejs version rules
Browse files Browse the repository at this point in the history
  • Loading branch information
depapp committed Aug 27, 2024
1 parent 13b1bd9 commit 04d6577
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [14.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -39,9 +39,21 @@ jobs:

- name: install dependencies
run: npm install
continue-on-error: ${{ matrix.node-version == '22.x' }}

- name: check for unsupported engine warning
if: matrix.node-version == '22.x'
run: |
npm install 2>&1 | tee npm-install.log | grep "npm warn EBADENGINE Unsupported engine"
if [ $? -ne 0 ]; then
echo "Expected engine warning not found"
exit 1
fi
- name: symlink using npm-link
run: npm link
if: matrix.node-version != '22.x'

- name: run pusakatest
run: pusakatest -y
run: pusakatest -y
if: matrix.node-version != '22.x'

0 comments on commit 04d6577

Please sign in to comment.