diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 6a0d215fcd6..e59434175cd 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -51,8 +51,9 @@ jobs: uses: skjnldsv/read-package-engines-version-actions@0ce2ed60f6df073a62a77c0a4958dd0fc68e32e7 # v2.1 id: versions with: - fallbackNode: "^14" - fallbackNpm: "^7" + 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 @@ -63,6 +64,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: