mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 09:43: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
41 lines
939 B
YAML
41 lines
939 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: ['10']
|
|
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
|