mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
ci: enable yarn install cache (#4486)
* test: enable yarn install cache * ci: correct cache key * ci: update caching to use bahmutov/npm-install
This commit is contained in:
parent
17a7ce6d0d
commit
88a48a072a
|
|
@ -13,7 +13,9 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
- name: Installation
|
||||
run: yarn
|
||||
uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
install-command: yarn
|
||||
- name: Lint
|
||||
run: yarn lint:ci
|
||||
- name: Prettier Code
|
||||
|
|
|
|||
|
|
@ -22,7 +22,9 @@ jobs:
|
|||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Installation
|
||||
run: yarn
|
||||
uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
install-command: yarn
|
||||
- name: Migrate D1 website
|
||||
run: yarn test:v1Migration:migrate
|
||||
- name: Build D1 migrated website
|
||||
|
|
|
|||
|
|
@ -23,7 +23,9 @@ jobs:
|
|||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Installation
|
||||
run: yarn
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
- name: Installation
|
||||
run: yarn
|
||||
uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
install-command: yarn
|
||||
- name: Build blog-only
|
||||
run: yarn workspace docusaurus-2-website build:blogOnly
|
||||
|
|
|
|||
|
|
@ -26,7 +26,9 @@ jobs:
|
|||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Installation
|
||||
run: yarn
|
||||
uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
install-command: yarn
|
||||
- name: Setup test-website project against master release
|
||||
run: |
|
||||
yarn test:build:v2
|
||||
|
|
@ -52,7 +54,9 @@ jobs:
|
|||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Installation
|
||||
run: yarn
|
||||
uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
install-command: yarn
|
||||
- name: Setup test-website project against master release
|
||||
run: |
|
||||
KEEP_CONTAINER=true yarn test:build:v2
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ jobs:
|
|||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Installation
|
||||
run: yarn
|
||||
uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
install-command: yarn
|
||||
- name: Test
|
||||
run: yarn test
|
||||
|
|
|
|||
Loading…
Reference in New Issue