Skip to content

Add test workflow

Add test workflow #1

Workflow file for this run

name: Test
on:
push:
workflow_dispatch:
strategy:

Check failure on line 5 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 5, Col: 1): Unexpected value 'strategy' .github/workflows/test.yml (Line: 10, Col: 5): Required property is missing: runs-on
matrix:
node-version: ['16.x', '18.x', '20.x']
jobs:
test:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test