diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f319c60c..8f01fe49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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