66 lines
1.5 KiB
YAML
Raw Normal View History

2019-09-26 17:48:38 -04:00
name: Node CI
2019-10-21 21:02:15 -04:00
on: [push, pull_request]
2019-09-26 17:48:38 -04:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x]
2019-09-26 17:48:38 -04:00
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, unit test and build
run: |
node --version
npm --version
yarn --version
yarn
yarn bootstrap
yarn test:ci
yarn build:demo
env:
CI: true
NODE_OPTIONS: --max-old-space-size=4096
- uses: actions/upload-artifact@master
with:
name: dev-test-website-node-${{ matrix.node-version }}
path: dev-test
e2e:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
machine: [1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- uses: actions/download-artifact@master
with:
name: dev-test-website-node-10.x
path: dev-test
- name: npm install and e2e test
run: |
node --version
npm --version
yarn --version
yarn
yarn test:e2e:run-ci
env:
CI: true
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
NODE_OPTIONS: --max-old-space-size=4096