Skip to content

Commit

Permalink
Try running node versions test with workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Maaaartin committed Jun 30, 2024
1 parent ca785a5 commit 27958ad
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,22 @@ jobs:
test-versions:
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 17, 18, 19, 20, 21]
steps:
- uses: actions/checkout@v2
- name: Setup nvm and use Node
run: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm use system
npm uninstall -g a_module

- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: lib # The name of the artifact to download
- name: Run Bash Script
run: |
./test_versions
name: lib
path: ./lib

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Test
run: yarn test

0 comments on commit 27958ad

Please sign in to comment.