mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-31 15:42:48 +00:00
* chore: fix various intl stuff - remove intl-locales-supported & intl since they're deprecated and only needed for IE11 - add new polyfills for node 12 - clean up babel intl extractor - reset jest test timezone to UTC so it passes even for East Coast contributor * chore: change build to include Node 14 * docs: update i18n reqs
38 lines
916 B
YAML
38 lines
916 B
YAML
name: Windows Build Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
node: ['12', '14']
|
|
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 Jest Tests
|
|
run: yarn test
|
|
- name: Docusaurus 2 Build
|
|
run: yarn build:v2
|
|
env:
|
|
CI: true
|