Skip to content

Commit

Permalink
ci: use containers matrix name in github actions workflow (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 committed Feb 2, 2024
1 parent 4302f44 commit a83127f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/using-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a83127f

Please sign in to comment.