docusaurus/.github/workflows/migration-cli.yml
Armano 88a48a072a
ci: enable yarn install cache (#4486)
* test: enable yarn install cache

* ci: correct cache key

* ci: update caching to use bahmutov/npm-install
2021-03-25 16:29:32 +01:00

34 lines
750 B
YAML

name: Migration CLI
on:
pull_request:
branches:
- master
paths:
- packages/docusaurus-migration/**
- website-1.x/**
jobs:
build:
timeout-minutes: 30
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
uses: bahmutov/npm-install@v1
with:
install-command: yarn
- name: Migrate D1 website
run: yarn test:v1Migration:migrate
- name: Build D1 migrated website
run: yarn test:v1Migration:build
env:
CI: true