chore: run CI on latest Node.js (#5418)
This commit is contained in:
parent
5974ee8311
commit
b08c813cab
17
.github/workflows/nodejs.yml
vendored
17
.github/workflows/nodejs.yml
vendored
@ -20,14 +20,13 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, windows-latest, ubuntu-latest]
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||||
node-version: [15.x]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: '*'
|
||||||
|
check-latest: true
|
||||||
- name: log versions
|
- name: log versions
|
||||||
run: node --version && npm --version && yarn --version
|
run: node --version && npm --version && yarn --version
|
||||||
- name: install dependecies
|
- name: install dependecies
|
||||||
@ -43,7 +42,7 @@ jobs:
|
|||||||
NODE_OPTIONS: --max-old-space-size=4096
|
NODE_OPTIONS: --max-old-space-size=4096
|
||||||
- uses: actions/upload-artifact@master
|
- uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: dev-test-website-${{ runner.os }}-node-${{ matrix.node-version }}
|
name: dev-test-website-${{ runner.os }}
|
||||||
path: dev-test
|
path: dev-test
|
||||||
|
|
||||||
e2e-with-cypress:
|
e2e-with-cypress:
|
||||||
@ -53,15 +52,15 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
machine: [1, 2, 3, 4, 5, 6, 7, 8]
|
machine: [1, 2, 3, 4, 5, 6, 7, 8]
|
||||||
node-version: [15.x]
|
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: '*'
|
||||||
|
check-latest: true
|
||||||
- name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
@ -73,7 +72,7 @@ jobs:
|
|||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
- uses: actions/download-artifact@master
|
- uses: actions/download-artifact@master
|
||||||
with:
|
with:
|
||||||
name: dev-test-website-${{ runner.os }}-node-${{ matrix.node-version }}
|
name: dev-test-website-${{ runner.os }}
|
||||||
path: dev-test
|
path: dev-test
|
||||||
- name: npm install
|
- name: npm install
|
||||||
run: |
|
run: |
|
||||||
|
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@ -22,19 +22,15 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
needs: check-permission
|
needs: check-permission
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [15.x]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GIT_TOKEN }}
|
token: ${{ secrets.GIT_TOKEN }}
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: '*'
|
||||||
|
check-latest: true
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/yarn
|
path: ~/.cache/yarn
|
||||||
|
@ -1 +1 @@
|
|||||||
15
|
node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user