feat: node native addon (nan) #301
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: e2e | |
on: | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
e2e: | |
strategy: | |
matrix: | |
os: [macos-12, ubuntu-22.04, windows-2022] | |
node: [16, 18, 20, 21] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.1.1 | |
- name: Setup Node | |
uses: actions/setup-node@v4.0.0 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "npm" | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: npm ci | |
- name: Check for formatting errors | |
run: npm run fmt:check | |
- name: Check for linting errors | |
run: npm run lnt:check | |
- name: Link module | |
run: npm link nw-builder | |
- name: Run unit tests | |
run: npm run test:unit | |
- name: Run Selenium tests | |
run: npm run test:e2e |