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:
Bartosz Kaszubowski 2020-12-01 16:22:03 +01:00 committed by GitHub
parent 28a83d73e3
commit 3e101f86b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 41 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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