Skip to content

Merge pull request #79 from smorimoto/update-gha #265

Merge pull request #79 from smorimoto/update-gha

Merge pull request #79 from smorimoto/update-gha #265

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [16, 18, 20, 21]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Test
run: pnpm test -- --coverage
- name: Build
run: pnpm build