CyberChef/.github/workflows/main.yml

32 lines
703 B
YAML
Raw Normal View History

2019-09-30 14:56:26 +02:00
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
2019-09-30 14:56:26 +02:00
run: npx grunt lint
- name: Unit Tests
run: |
2019-09-30 14:56:26 +02:00
npx grunt test
2019-09-30 15:02:22 +02:00
sudo npx grunt testnodeconsumer
2019-09-30 15:08:23 +02:00
- name: Production Build
run: npx grunt prod
- name: UI Tests
2019-09-30 14:56:26 +02:00
run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
2019-09-30 15:08:23 +02:00
- name: Deploy
uses: JamesIves/github-pages-deploy-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build/prod