Skip to content

ci: add workflow_dispatch event to test.yml #18

ci: add workflow_dispatch event to test.yml

ci: add workflow_dispatch event to test.yml #18

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]
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
run: |
npm run test
shell: bash
if: ${{ matrix.os != 'windows-latest' }}
- name: Run tests (Windows)
run: |
npm run test
shell: powershell
if: ${{ matrix.os == 'windows-latest' }}