From a74ee47bf0b04407a37da3dbff7e716aa087ef2c Mon Sep 17 00:00:00 2001 From: n1474335 Date: Mon, 1 Feb 2021 14:18:17 +0000 Subject: [PATCH] Updated actions config --- .github/workflows/master.yml | 4 ++-- .github/workflows/releases.yml | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 457d60e1..ee10247a 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -30,7 +30,6 @@ jobs: npx grunt testnodeconsumer - name: Production Build - id: prod_build if: success() run: npx grunt prod @@ -38,10 +37,11 @@ jobs: run: npx grunt exec:sitemap - name: UI Tests - needs: prod_build + if: success() run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui - name: Prepare for GitHub Pages + if: success() run: npx grunt copy:ghPages - name: Deploy to GitHub Pages diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 3aab929d..c0920595 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -30,17 +30,14 @@ jobs: npx grunt testnodeconsumer - name: Production Build - id: prod_build if: success() run: npx grunt prod - name: UI Tests - id: ui_tests - needs: prod_build + if: success() run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui - name: Upload Release Assets - needs: ui_tests if: success() id: upload-release-assets uses: svenstaro/upload-release-action@v2 @@ -52,7 +49,6 @@ jobs: file_glob: true - name: Publish to NPM - needs: ui_tests if: success() uses: JS-DevTools/npm-publish@v1 with: