ci: add Node 16, 18 and 20 [version 3] #791
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: v3-ci | |
on: | |
pull_request: | |
branches: | |
- v3 | |
workflow_dispatch: | |
branches: | |
- v3 | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
e2e: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
node: [20] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3.3.0 | |
- name: Setup Node | |
uses: actions/setup-node@v3.6.0 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "npm" | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: npm ci | |
- name: Generate CJS dist | |
run: npm run test:dist | |
- name: Link module | |
run: npm link nw-builder | |
- name: Run Jest tests | |
run: npm run test:jest | |
# - name: Run Tape tests | |
# run: npm run test:tape | |
- name: Run ChromeDriver tests | |
run: npm run test:sanity |