docusaurus/.github/workflows/tests.yml
2022-04-22 11:28:25 +02:00

39 lines
863 B
YAML

name: Tests
on:
pull_request:
branches:
- main
paths-ignore:
- website/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
name: Tests
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14', '16', '18']
steps:
- name: Checkout
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 # v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3
with:
node-version: ${{ matrix.node }}
cache: yarn
- name: Installation
run: yarn
- name: Test
run: yarn test
- name: TypeCheck website
run: yarn workspace website typecheck