From a8dc69103308e419abdb7a867eb2c9a9c9727be7 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 30 Sep 2019 13:51:38 +0100 Subject: [PATCH] Try using github actions Gonna monch this commit once i know it works --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..6861528a --- /dev/null +++ b/.github/workflows/main.yml @@ -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