Skip to content

ci: add Node 16, 18 and 20 [version 3] #789

ci: add Node 16, 18 and 20 [version 3]

ci: add Node 16, 18 and 20 [version 3] #789

Workflow file for this run

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