2019-09-30 12:56:26 +00:00
|
|
|
name: Test & Deploy
|
2019-09-30 12:51:38 +00:00
|
|
|
|
2019-09-30 13:41:14 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-09-30 12:51:38 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2019-09-30 13:41:14 +00:00
|
|
|
- uses: actions/checkout@master
|
2019-09-30 12:51:38 +00:00
|
|
|
- name: Setup
|
|
|
|
run: |
|
|
|
|
npm i
|
|
|
|
export NODE_OPTIONS=--max_old_space_size=2048
|
|
|
|
- name: Lint
|
2019-09-30 12:56:26 +00:00
|
|
|
run: npx grunt lint
|
2019-09-30 12:51:38 +00:00
|
|
|
- name: Unit Tests
|
|
|
|
run: |
|
2019-09-30 12:56:26 +00:00
|
|
|
npx grunt test
|
2019-09-30 13:02:22 +00:00
|
|
|
sudo npx grunt testnodeconsumer
|
2019-09-30 13:08:23 +00:00
|
|
|
- name: Production Build
|
|
|
|
run: npx grunt prod
|
2019-09-30 12:51:38 +00:00
|
|
|
- name: UI Tests
|
2019-09-30 12:56:26 +00:00
|
|
|
run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
|
2019-09-30 13:08:23 +00:00
|
|
|
- name: Deploy
|
2019-09-30 13:41:14 +00:00
|
|
|
uses: peaceiris/actions-gh-pages@v2.4.0
|
2019-09-30 12:51:38 +00:00
|
|
|
env:
|
2019-09-30 13:41:14 +00:00
|
|
|
PERSONAL_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
PUBLISH_BRANCH: gh-pages
|
|
|
|
PUBLISH_DIR: ./build/prod
|