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: on:
pull_request_target: pull_request_target:
@ -8,7 +8,6 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: preactjs/compressed-size-action@v2 - uses: preactjs/compressed-size-action@v2

View file

@ -1,8 +1,6 @@
name: E2E Test name: E2E Test
on: on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push: push:
branches: branches:
- master - master
@ -15,13 +13,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [10.x] node: ['10', '14']
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node }}
- name: Installation - name: Installation
run: yarn run: yarn
- name: Setup test-website project against master release - name: Setup test-website project against master release
@ -40,13 +38,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [10.x] node: ['10', '14']
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node }}
- name: Installation - name: Installation
run: yarn run: yarn
- name: Setup test-website project against master release - name: Setup test-website project against master release

View file

@ -1,17 +1,19 @@
name: Lighthouse CI name: Lighthouse Report
on: pull_request_target on: pull_request_target
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node: ['12']
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js 12.x - name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: ${{ matrix.node }}
- name: Install and Build - name: Install and Build
run: | run: |
yarn install yarn install

View file

@ -1,8 +1,6 @@
name: MIGRATION CLI E2E TEST name: Migration CLI E2E Test
on: on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push: push:
branches: branches:
- master - master
@ -15,13 +13,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [10.x] node: ['10']
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node }}
- name: Installation - name: Installation
run: yarn run: yarn
- name: Migrate D1 website - name: Migrate D1 website

View file

@ -1,8 +1,6 @@
name: Docusaurus on Windows name: Windows Build Test
on: on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push: push:
branches: branches:
- master - master
@ -12,21 +10,21 @@ on:
jobs: jobs:
build: build:
runs-on: windows-2019 runs-on: windows-latest
strategy: strategy:
matrix: matrix:
node-version: [10.x] node: ['10']
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node }}
- name: Installation - name: Installation
run: yarn || yarn || yarn # 3 attemps to avoid timeout errors... run: yarn || yarn || yarn # 3 attempts to avoid timeout errors...
- name: Docusaurus 1 Build - name: Docusaurus 1 Build
run: yarn build:v1 run: yarn build:v1
- name: Docusaurus 2 Build - name: Docusaurus 2 Build
run: yarn build:v2 run: yarn build:v2
env: env:
CI: true CI: true

1
.gitignore vendored
View file

@ -6,6 +6,7 @@
.changelog .changelog
node_modules node_modules
.yarn
.eslintcache .eslintcache