mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-29 05:12:52 +00:00
* fix: truncate docuhash return value in order to avoid ERRNAMETOOLONG error * chore: add deep file path test page to website * refactor: reorganize docuHash/pathUtils code and tests * chore: git support longpaths on v2 windows tests workflow Co-authored-by: slorber <lorber.sebastien@gmail.com>
35 lines
848 B
YAML
35 lines
848 B
YAML
name: V2 Windows Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- 'website-1.x/**'
|
|
- 'packages/docusaurus-1.x/**'
|
|
- 'packages/docusaurus-init-1.x/**'
|
|
|
|
jobs:
|
|
build:
|
|
timeout-minutes: 30
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
node: ['12', '14']
|
|
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: Docusaurus Build
|
|
run: yarn build:v2 --locale en
|
|
env:
|
|
CI: true
|