docusaurus/.github/workflows/tests.yml
Naveen ce08891af3
misc: pin actions to a full-length commit SHA (#6984)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-04-13 18:45:19 +02:00

34 lines
727 B
YAML

name: Tests
on:
pull_request:
branches:
- main
paths-ignore:
- website/**
permissions:
contents: read
jobs:
test:
name: Tests
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14', '16', '17']
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # 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