docusaurus/.github/workflows/tests-windows.yml
Joshua Chen d5d10f5656
chore: add prefix to needs triage label; separate Windows test workflow (#6068)
* chore: add status prefix to needs triage label

* Separate Windows workflow
2021-12-08 09:23:47 +08:00

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