docusaurus/.github/workflows/migration-cli-e2e-test.yml
Long Ho 1078341b22
refactor(v2): i18n cleanups / refactors (#4405)
* 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
2021-03-15 18:02:53 +01:00

41 lines
945 B
YAML

name: Migration CLI E2E Test
on:
pull_request:
branches:
- master
jobs:
check:
runs-on: ubuntu-latest
outputs:
migration: ${{ steps.filter.outputs.migration }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
migration:
- 'packages/docusaurus-migration/**'
build:
needs: check
if: ${{ needs.check.outputs.migration == 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
node: ['12', '14']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Installation
run: yarn
- name: Migrate D1 website
run: yarn test:v1Migration:migrate
- name: Build D1 migrated website
run: yarn test:v1Migration:build
env:
CI: true