mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
35 lines
750 B
YAML
35 lines
750 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:
|
|
- name: Checkout
|
|
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
|