diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index c9139ec7..457d60e1 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -30,6 +30,7 @@ jobs: npx grunt testnodeconsumer - name: Production Build + id: prod_build if: success() run: npx grunt prod @@ -37,7 +38,7 @@ jobs: run: npx grunt exec:sitemap - name: UI Tests - needs: Production Build + needs: prod_build run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui - name: Prepare for GitHub Pages diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index a3e51c18..3aab929d 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -30,15 +30,17 @@ jobs: npx grunt testnodeconsumer - name: Production Build + id: prod_build if: success() run: npx grunt prod - name: UI Tests - needs: Production Build + id: ui_tests + needs: prod_build run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui - name: Upload Release Assets - needs: UI Tests + needs: ui_tests if: success() id: upload-release-assets uses: svenstaro/upload-release-action@v2 @@ -50,7 +52,7 @@ jobs: file_glob: true - name: Publish to NPM - needs: UI Tests + needs: ui_tests if: success() uses: JS-DevTools/npm-publish@v1 with: