mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
chore(ci): CI scripts cleanup, add Node 14 runs, bump checkout action (#3849)
* chore(ci): CI scripts cleanup, add Node 14 and 15 runs, bump checkout action * chore(ci): attempt to fix Yarn v2 install * chore(ci): another attempt to fix Yarn v2 install * use local yarn-deduplicate * move yarn config steps earlier * remove localhost registry config * revert changes, temporary remove lock update from postinstall * revert to use Yarn v2 only for website build * revert back localhost registry * missing flag * is it node 15 to blame? * not running yarn v2 on workspace so lock update can be reverted
This commit is contained in:
parent
28a83d73e3
commit
3e101f86b7
6 changed files with 37 additions and 41 deletions
3
.github/workflows/build-size.yml
vendored
3
.github/workflows/build-size.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Build Size
|
||||
name: Build Size Report
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
|
@ -8,7 +8,6 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: preactjs/compressed-size-action@v2
|
||||
|
|
18
.github/workflows/e2e-test.yml
vendored
18
.github/workflows/e2e-test.yml
vendored
|
@ -1,8 +1,6 @@
|
|||
name: E2E Test
|
||||
|
||||
on:
|
||||
# Trigger the workflow on push or pull request,
|
||||
# but only for the master branch
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
@ -15,13 +13,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x]
|
||||
node: ['10', '14']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Installation
|
||||
run: yarn
|
||||
- name: Setup test-website project against master release
|
||||
|
@ -40,13 +38,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x]
|
||||
node: ['10', '14']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Installation
|
||||
run: yarn
|
||||
- name: Setup test-website project against master release
|
||||
|
|
10
.github/workflows/lighthouseCI.yml
vendored
10
.github/workflows/lighthouseCI.yml
vendored
|
@ -1,17 +1,19 @@
|
|||
name: Lighthouse CI
|
||||
name: Lighthouse Report
|
||||
|
||||
on: pull_request_target
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node: ['12']
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js 12.x
|
||||
- name: Use Node.js ${{ matrix.node }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Install and Build
|
||||
run: |
|
||||
yarn install
|
||||
|
|
12
.github/workflows/migration-cli-e2e-test.yml
vendored
12
.github/workflows/migration-cli-e2e-test.yml
vendored
|
@ -1,8 +1,6 @@
|
|||
name: MIGRATION CLI E2E TEST
|
||||
name: Migration CLI E2E Test
|
||||
|
||||
on:
|
||||
# Trigger the workflow on push or pull request,
|
||||
# but only for the master branch
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
@ -15,13 +13,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x]
|
||||
node: ['10']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Installation
|
||||
run: yarn
|
||||
- name: Migrate D1 website
|
||||
|
|
34
.github/workflows/nodejs-windows.yml
vendored
34
.github/workflows/nodejs-windows.yml
vendored
|
@ -1,8 +1,6 @@
|
|||
name: Docusaurus on Windows
|
||||
name: Windows Build Test
|
||||
|
||||
on:
|
||||
# Trigger the workflow on push or pull request,
|
||||
# but only for the master branch
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
@ -12,21 +10,21 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-2019
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x]
|
||||
node: ['10']
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: Installation
|
||||
run: yarn || yarn || yarn # 3 attemps to avoid timeout errors...
|
||||
- name: Docusaurus 1 Build
|
||||
run: yarn build:v1
|
||||
- name: Docusaurus 2 Build
|
||||
run: yarn build:v2
|
||||
env:
|
||||
CI: true
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Installation
|
||||
run: yarn || yarn || yarn # 3 attempts to avoid timeout errors...
|
||||
- name: Docusaurus 1 Build
|
||||
run: yarn build:v1
|
||||
- name: Docusaurus 2 Build
|
||||
run: yarn build:v2
|
||||
env:
|
||||
CI: true
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
|||
.changelog
|
||||
|
||||
node_modules
|
||||
.yarn
|
||||
|
||||
.eslintcache
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue