docusaurus/.github/workflows/v1-tests.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

32 lines
767 B
YAML

name: V1 Tests
on:
pull_request:
branches:
- master
paths:
- 'website-1.x/**'
- 'packages/docusaurus-1.x/**'
- 'packages/docusaurus-init-1.x/**'
jobs:
test:
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: Test
run: yarn test:v1
# Not useful to build v1 site because tests already build v1 (packages/docusaurus-1.x/lib/__tests__/build-files.test.js)