From cb5da935b272ee428521f159a17a7ded1303441f Mon Sep 17 00:00:00 2001 From: Michael <30682308+mike10ca@users.noreply.github.com> Date: Thu, 2 Nov 2023 21:56:17 +0100 Subject: [PATCH] Tests: Update workflow to enable tests run in parallel (#2739) * Update workflow to enable tests run in parallel * Update workflow of Safe Apps to run in parallel --- .github/workflows/e2e.yml | 9 ++++++++- .github/workflows/safe-apps-e2e.yml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 6af7316dbc..fc2c709f25 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -10,7 +10,11 @@ concurrency: jobs: e2e: runs-on: ubuntu-20.04 - name: Smoke E2E tests + name: Cypress Smoke tests + strategy: + fail-fast: false + matrix: + containers: [1, 2, 3] steps: - uses: actions/checkout@v3 @@ -30,9 +34,12 @@ jobs: - uses: cypress-io/github-action@v4 with: + parallel: true spec: cypress/e2e/smoke/*.cy.js browser: chrome record: true config: baseUrl=http://localhost:8080 + group: 'Smoke tests' env: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/safe-apps-e2e.yml b/.github/workflows/safe-apps-e2e.yml index 6067184867..7053c80d4d 100644 --- a/.github/workflows/safe-apps-e2e.yml +++ b/.github/workflows/safe-apps-e2e.yml @@ -11,7 +11,11 @@ concurrency: jobs: e2e: runs-on: ubuntu-latest - name: Safe Apps E2E tests + name: Cypress Safe Apps tests + strategy: + fail-fast: false + matrix: + containers: [1, 2, 3] steps: - uses: actions/checkout@v3 @@ -31,10 +35,13 @@ jobs: - uses: cypress-io/github-action@v4 with: + parallel: true spec: cypress/e2e/safe-apps/*.cy.js browser: chrome record: true config: baseUrl=http://localhost:8080 + group: 'Safe Apps tests' env: CYPRESS_PROJECT_ID: okn21k CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_SAFE_APPS_RECORD_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}