chore: refactor CI workflows
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
name: Node CI
|
name: Daily project check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
schedule:
|
schedule:
|
||||||
# build runs everyday at 6AM UTC
|
# build runs everyday at 6AM UTC
|
||||||
- cron: '0 6 * * *'
|
- cron: '0 6 * * *'
|
||||||
@@ -39,7 +37,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-node@v1
|
- name: Use Node.js 12
|
||||||
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
- name: e2e chrome test
|
- name: e2e chrome test
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
name: Project check
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [8.x, 10.x, 12.x]
|
||||||
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- name: project check
|
||||||
|
run: |
|
||||||
|
npm i
|
||||||
|
npm run clearCache
|
||||||
|
npm run build
|
||||||
|
npm run lint
|
||||||
|
npm run test:unit
|
||||||
|
env:
|
||||||
|
CI: true
|
||||||
|
|
||||||
|
e2e-chrome:
|
||||||
|
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Use Node.js 12
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12
|
||||||
|
- name: e2e chrome test
|
||||||
|
run: |
|
||||||
|
npm i
|
||||||
|
npm run test:e2e
|
||||||
|
env:
|
||||||
|
BROWSER: chrome
|
||||||
Reference in New Issue
Block a user