24 lines
502 B
YAML
24 lines
502 B
YAML
name: tests
|
|
on:
|
|
push:
|
|
branches-ignore: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
unit-tests:
|
|
strategy:
|
|
matrix:
|
|
os: ['ubuntu-latest', 'windows-latest']
|
|
node_version: [lts/-1, lts/*, latest]
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node_version }}
|
|
cache: yarn
|
|
- run: yarn
|
|
- run: yarn build
|
|
- run: yarn test
|