docusaurus/.github/workflows/migration-cli.yml
Sébastien Lorber 3422f80a9a
chore: simplify CI setup (#4447)
* improve ci

* improve ci

* use actions/setup-node@v2 everywhere

* run pwd for test

* debug gh action

* debug glob CI issue?

* Separate v1/v2 tests due to shell conflict

* cleanup

* test v1 change

* circleci fix

* fix test docusaurus v1 paths

* Refactor CI script names and use paths to filter  actions from running unnecessary

* fix lighthouse url

* v1 tests runInBand

* try to fix v1 tests race conditions

* change rootDir for v1 tests

* minor CI improvements
2021-03-18 17:40:28 +01:00

31 lines
660 B
YAML

name: Migration CLI
on:
pull_request:
branches:
- master
paths:
- packages/docusaurus-migration/**
- website-1.x/**
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['12', '14']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
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