From 85906cafbb9422af3a544347cc918c38b047798d Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 30 Sep 2019 13:56:26 +0100 Subject: [PATCH] Adjustment --- .github/workflows/main.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6861528a..d971756d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Test +name: Test & Deploy on: [push] @@ -12,29 +12,19 @@ jobs: - name: Setup run: | npm i - npm i -g grunt export NODE_OPTIONS=--max_old_space_size=2048 - name: Lint - run: grunt lint + run: npx grunt lint - name: Unit Tests run: | - grunt test - grunt testnodeconsumer + npx grunt test + npx 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 + 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: grunt prod + BUILD_SCRIPT: npx grunt prod