Skip to content

ci: add cache and fail-fast #12

ci: add cache and fail-fast

ci: add cache and fail-fast #12

Workflow file for this run

name: CI # Continuous Integration
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build-and-test:
name: Node.js-${{ matrix.node }}
strategy:
matrix:
node: [ 20, 22 ]
os:
- ubuntu-latest
- windows-latest
- macos-latest
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "npm"
- name: Init dependencies
run: make init
- name: Build
run: make build
- name: Run tests
run: make test