From 1e33ffc070833e1a46dc60a9ee9fdeca7dafae0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kristensson=20Alfsson?= Date: Fri, 12 Jun 2020 21:14:01 +0200 Subject: [PATCH] fix: added build step Build step had been removed. --- .github/workflows/nodejs.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 55e0cbc1..5d44ba8f 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -36,10 +36,9 @@ jobs: - name: Tests uses: cypress-io/github-action@v1 with: - build: npm run serve + start: npm run serve record: false # cypress.io free recording limit exceeded wait-on: 'http://localhost:8080' - command: npm run test:e2e env: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -49,7 +48,12 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos file: ./coverage/coverage-final.json # optional fail_ci_if_error: true # optional (default = false) - + - name: Build PWA distribution for production + run: | + npm run build --if-present + npm test + env: + CI: true - name: Run Lighthouse PWA check against local production build uses: treosh/lighthouse-ci-action@v2 with: