node 22 linux only #10
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: Build & Test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
- 'signatures/**' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node: [22] | |
os: [ubuntu-22.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Node ${{ matrix.node }} in ${{ runner.os }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "npm" | |
- name: Update node-gyp | |
run: npm install --global node-gyp@latest | |
- name: Install Windows packages | |
if: runner.os == 'Windows' | |
run: ./win_install.ps1 | |
- name: Build | |
run: npm ci | |
# skipping on windows for now due to Make / mocha exit code issues | |
- name: Test | |
if: runner.os != 'Windows' | |
run: npm test |