From f4b0fcce5b48d57afb989f930a60ccced3368b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 11 Aug 2023 09:47:25 +0200 Subject: [PATCH] ci(cypress): Make sure to build before cypress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- .github/workflows/cypress.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index a3b995b31d5..4634b76bfeb 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -49,6 +49,7 @@ jobs: with: fallbackNode: "^20" fallbackNpm: "^9" + path: apps/${{ env.APP_NAME }} - name: Set up node ${{ steps.versions.outputs.nodeVersion }} uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 @@ -59,6 +60,12 @@ jobs: - name: Set up npm ${{ steps.versions.outputs.npmVersion }} run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}" + - name: Install dependencies & build app + working-directory: apps/${{ env.APP_NAME }} + run: | + npm ci + TESTING=true npm run build --if-present + - name: Save context uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 with: