From a83127f90799af311dab9fa7a994330e54cc7d2b Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Fri, 2 Feb 2024 16:20:02 +0100 Subject: [PATCH] ci: use containers matrix name in github actions workflow (#789) --- .github/workflows/using-action.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/using-action.yml b/.github/workflows/using-action.yml index 0f574372d..f3ffd3561 100644 --- a/.github/workflows/using-action.yml +++ b/.github/workflows/using-action.yml @@ -27,10 +27,14 @@ jobs: # https://github.com/cypress-io/github-action/issues/48 fail-fast: false matrix: - # run 4 copies of the current job in parallel - # the actual items in the array do not matter - # we just need to "force" GitHub CI to create 4 jobs - machines: [1, 2, 3, 4] + # Run 4 copies of the current job in parallel. + # The name of the array (containers) and + # the actual items in the array (1, 2, 3, 4) do not matter. + # Based on the array, GitHub Actions will create + # 4 independently running parallel jobs + # (see https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs). + # Cypress Cloud load-balances the Cypress tests across the GitHub Actions jobs. + containers: [1, 2, 3, 4] steps: - name: Checkout uses: actions/checkout@v4 @@ -61,7 +65,7 @@ jobs: # run 2 copies of the current job in parallel # and they will load balance all specs os: ['ubuntu-22.04', 'windows-latest', 'macos-latest'] - machines: [1, 2] + containers: [1, 2] runs-on: ${{ matrix.os }} steps: - name: Checkout