From 76484afb409fbde07004a97743233673e471c4f3 Mon Sep 17 00:00:00 2001 From: Michael <30682308+mike10ca@users.noreply.github.com> Date: Wed, 22 Nov 2023 11:43:52 +0100 Subject: [PATCH] Tests: Add Chrome version to smoke tests workflow (#2826) * Add ability to use single Chrome version * Increase retry attempts --- .github/workflows/ondemand.yml | 2 ++ .github/workflows/regression.yml | 2 ++ .github/workflows/safe-apps-e2e.yml | 2 ++ .github/workflows/smoke.yml | 4 ++++ cypress.config.js | 2 +- 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ondemand.yml b/.github/workflows/ondemand.yml index 77fd680078..4f7bb5c563 100644 --- a/.github/workflows/ondemand.yml +++ b/.github/workflows/ondemand.yml @@ -18,6 +18,8 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: browser-actions/setup-chrome@v1 + - uses: ./.github/workflows/yarn - name: Install Cypress diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index 82719bbe95..a1cc2cd510 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -21,6 +21,8 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: browser-actions/setup-chrome@v1 + - uses: ./.github/workflows/yarn - name: Install Cypress diff --git a/.github/workflows/safe-apps-e2e.yml b/.github/workflows/safe-apps-e2e.yml index 35c0add6ad..44fb0f9190 100644 --- a/.github/workflows/safe-apps-e2e.yml +++ b/.github/workflows/safe-apps-e2e.yml @@ -19,6 +19,8 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: browser-actions/setup-chrome@v1 + - uses: ./.github/workflows/yarn - name: Install Cypress diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml index d2d0ff5acc..3b45eff404 100644 --- a/.github/workflows/smoke.yml +++ b/.github/workflows/smoke.yml @@ -11,13 +11,17 @@ jobs: e2e: runs-on: ubuntu-20.04 name: Cypress Smoke tests + strategy: fail-fast: false matrix: containers: [1, 2, 3, 4, 5] + steps: - uses: actions/checkout@v3 + - uses: browser-actions/setup-chrome@v1 + - uses: ./.github/workflows/yarn - name: Install Cypress diff --git a/cypress.config.js b/cypress.config.js index cb3c4e200d..3b57174ed1 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -6,7 +6,7 @@ export default defineConfig({ trashAssetsBeforeRuns: true, retries: { - runMode: 1, + runMode: 2, openMode: 0, }, e2e: {