Skip to content

Prepare 4.0.0

Prepare 4.0.0 #204

Workflow file for this run

name: node-ci
on:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: npm
- name: Install latest npm
run: npm install --global npm@latest
- name: Install dependencies
run: npm ci
- name: Check
run: npm run check
test:
name: Test on Node.js ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [18, 20]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install latest npm
run: npm install --global npm@latest
- name: Install dependencies
run: npm ci
- name: Test
run: npm test