mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com> Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- docusaurus-v**
|
|
paths:
|
|
- package.json
|
|
- yarn.lock
|
|
- jest.config.mjs
|
|
- packages/**
|
|
- tsconfig.json
|
|
|
|
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: ['18.0', '18', '20']
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
|
- name: Use Node.js ${{ matrix.node }}
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # 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
|
|
- name: Remove Theme Internal Re-export
|
|
run: yarn workspace @docusaurus/theme-common removeThemeInternalReexport
|
|
- name: Docusaurus Build
|
|
run: yarn build:website:fast
|