Try using github actions

Gonna monch this commit once i know it works
This commit is contained in:
Matt 2019-09-30 13:51:38 +01:00 committed by GitHub
parent db232f4ff2
commit a8dc691033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 0 deletions

40
.github/workflows/main.yml vendored Normal file
View File

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