Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use containers matrix name in github actions workflow #789

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading