chore: generate dogfooding test for long pathname during CI (#5977)

* chore: generate dogfooding test for long pathname during CI

* Fix test

* Fix again
This commit is contained in:
Joshua Chen 2021-11-20 14:18:50 +08:00 committed by GitHub
parent 9a31c5358d
commit 87a486a02f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -47,6 +47,13 @@ jobs:
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: