31 lines
693 B
YAML
31 lines
693 B
YAML
name: Test & Deploy
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Setup
|
|
run: |
|
|
npm i
|
|
export NODE_OPTIONS=--max_old_space_size=2048
|
|
- name: Lint
|
|
run: npx grunt lint
|
|
- name: Unit Tests
|
|
run: |
|
|
npx grunt test
|
|
sudo npx grunt testnodeconsumer
|
|
- name: UI Tests
|
|
run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
|
|
- name: Build & Deploy
|
|
uses: JamesIves/github-pages-deploy-action@master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
BRANCH: gh-pages
|
|
FOLDER: build/prod
|
|
BUILD_SCRIPT: npx grunt prod
|