From 7a6f6900045732349d8448f0b9aef4f7691c1f47 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Wed, 1 Mar 2023 12:21:57 +0100 Subject: [PATCH] ci: Avoid `continue-on-error` for nextjs tests --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cae85a6b5725..ae47eda1610e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -474,7 +474,7 @@ jobs: strategy: fail-fast: false matrix: - node: [10, 12, 14, 16, '18.13.0'] + node: [10, 12, 14, 16, 18] steps: - name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }}) uses: actions/checkout@v3 @@ -507,14 +507,12 @@ jobs: path: ${{ steps.npm-cache-dir.outputs.dir }} key: ${{ runner.os }}-Playwright-${{steps.playwright-version.outputs.version}} - name: Install Playwright browser if not cached - if: steps.playwright-cache.outputs.cache-hit != 'true' - continue-on-error: true # playwright needs node >= 14 + if: steps.playwright-cache.outputs.cache-hit != 'true' && matrix.node >= 14 run: npx playwright install --with-deps env: PLAYWRIGHT_BROWSERS_PATH: ${{steps.npm-cache-dir.outputs.dir}} - name: Install OS dependencies of Playwright if cache hit - if: steps.playwright-cache.outputs.cache-hit == 'true' - continue-on-error: true # playwright needs node >= 14 + if: steps.playwright-cache.outputs.cache-hit == 'true' && matrix.node >= 14 run: npx playwright install-deps - name: Run tests env: