Fix nightly tests after changing node to 18 (#2594)

* Add image with installed node 18 version

* increase memory limit
This commit is contained in:
Karolina Rakoczy 2022-11-17 13:42:28 +01:00 committed by GitHub
parent 3653653e29
commit 3b99eb9033
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: