docusaurus/.github/workflows/tests.yml
Joshua Chen ebd5340205
chore: various improvements to repo setup (#6471)
* chore: various improvements to repo setup

* fix again

* fix
2022-01-26 14:24:15 +08:00

31 lines
610 B
YAML

name: Tests
on:
pull_request:
branches:
- main
paths-ignore:
- website/**
jobs:
test:
name: Tests
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14', '16', '17']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: yarn
- name: Installation
run: yarn
- name: Test
run: yarn test
- name: TypeCheck website
run: yarn workspace website typecheck