Skip to content

Test

Test #209

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
schedule:
- cron: '0 22 * * 3'
workflow_call:
permissions: {}
jobs:
test:
name: Test
strategy:
matrix:
node-version:
- 22.12.x
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: "${{ matrix.os }}"
permissions:
contents: read
steps:
- run: git config --global core.autocrlf input
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "${{ matrix.node-version }}"
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Test
run: yarn lint && yarn test
- name: Build docs
run: yarn build:docs
required-ci:
name: Required CI
if: always()
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Check job results
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1