From 3b99eb903302989b8205fee35cda96127801c720 Mon Sep 17 00:00:00 2001 From: Karolina Rakoczy Date: Thu, 17 Nov 2022 13:42:28 +0100 Subject: [PATCH] Fix nightly tests after changing node to 18 (#2594) * Add image with installed node 18 version * increase memory limit --- .github/workflows/tests-nightly.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests-nightly.yml b/.github/workflows/tests-nightly.yml index 7ea536463..9828e2f4d 100644 --- a/.github/workflows/tests-nightly.yml +++ b/.github/workflows/tests-nightly.yml @@ -92,9 +92,11 @@ jobs: needs: ['revert-automation-env-to-snap'] if: ${{ always() && github.event_name != 'repository_dispatch' }} #Wait for revert-automation-env-to-snap, bot run always, even if skipped runs-on: ubuntu-latest + env: + NODE_OPTIONS: "--max_old_space_size=4096" outputs: status: ${{ steps.cypress.outcome }} - container: cypress/browsers:node14.16.0-chrome89-ff86 + container: cypress/browsers:node18.12.0-chrome106-ff106 strategy: fail-fast: false matrix: @@ -115,7 +117,8 @@ jobs: DEFAULT_ENV_URI: 'https://automation-dashboard.staging.saleor.cloud/' TYPED_ENV_URI: '' run: | - echo "::set-output name=ENV_URI::${{ steps.get-typed-env-uri.outputs.ENV_URI || github.event.inputs.environment || env.DEFAULT_ENV_URI }}" + echo "::set-output name=ENV_URI::${{ steps.get-typed-env-uri.outputs.ENV_URI || github.event.inputs.environment || env.DEFAULT_ENV_URI }}" + - name: Setup Node uses: actions/setup-node@v3 with: @@ -182,10 +185,12 @@ jobs: if: ${{ github.event_name == 'repository_dispatch' && (github.event.client_payload.environment == 'SANDBOX' || github.event.client_payload.environment == 'STAGING')}} needs: get-environment-variables runs-on: ubuntu-latest + env: + NODE_OPTIONS: "--max_old_space_size=4096" outputs: status: ${{ steps.cypress.outcome }} dashboard_url: ${{ steps.cypress.outputs.dashboardUrl }} - container: cypress/browsers:node14.16.0-chrome89-ff86 + container: cypress/browsers:node18.12.0-chrome106-ff106 strategy: fail-fast: false matrix: