mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
* test: enable yarn install cache * ci: correct cache key * ci: update caching to use bahmutov/npm-install
32 lines
767 B
YAML
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)
|