mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-28 12:33:10 +00:00
* chore(ci): run V1 Build and Migration CLI test conditionally on CI * chore(ci): extend lighthouse timeout to 5 minutes * chore(ci): attempt to speed up build size check * chore(ci): use different build command in build size check * chore(ci): use only one locale in build size report workflow * chore(ci): fix quotes, move build-script param down
36 lines
851 B
YAML
36 lines
851 B
YAML
name: Windows Build Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
node: ['10']
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: dorny/paths-filter@v2
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
v1:
|
|
- 'packages/docusaurus-1.x/**'
|
|
- 'packages/docusaurus-init-1.x/**'
|
|
- name: Use Node.js ${{ matrix.node }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- name: Installation
|
|
run: yarn || yarn || yarn # 3 attempts to avoid timeout errors...
|
|
- name: Docusaurus 1 Build
|
|
if: steps.filter.outputs.v1 == 'true'
|
|
run: yarn build:v1
|
|
- name: Docusaurus 2 Build
|
|
run: yarn build:v2
|
|
env:
|
|
CI: true
|