mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
name: Windows Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- website/**
|
|
|
|
jobs:
|
|
windows-test:
|
|
name: Windows Tests
|
|
timeout-minutes: 30
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
node: ['14', '16', '17']
|
|
steps:
|
|
- name: Support longpaths
|
|
run: git config --system core.longpaths true
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node }}
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- name: Installation
|
|
run: yarn || yarn || yarn # 3 attempts to avoid timeout errors...
|
|
- name: Docusaurus Jest Tests
|
|
run: yarn test
|
|
- name: Create a deep path
|
|
# https://github.com/facebook/docusaurus/pull/4899
|
|
# https://github.com/facebook/docusaurus/issues/5793
|
|
run: |
|
|
mkdir -p "website/_dogfooding/_pages tests/deep-file-path-test/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar"
|
|
cd "$_"
|
|
echo "# hello" > test-file.md
|
|
- name: Docusaurus Build
|
|
run: yarn build:website --locale en
|
|
env:
|
|
CI: true
|