Skip to content

ci: add build workflow #24

ci: add build workflow

ci: add build workflow #24

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest, macos-14]
node-version: [16, 18, 20]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
npm install -g pnpm
pnpm install
- name: Run tests
if: ${{ matrix.os != 'windows-latest' }}
run: |
npm run test
shell: bash
- name: Run tests (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
npm run test
shell: powershell