Skip to content

Commit

Permalink
run tests in parallel across 3 machines
Browse files Browse the repository at this point in the history
  • Loading branch information
Demian Godon authored and Demian Godon committed Mar 15, 2024
1 parent 4f5b766 commit 55e8a94
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ on: push
jobs:
cypress-run:
runs-on: ubuntu-22.04
# Cypress Docker image from https://hub.docker.com/r/cypress
# with browsers pre-installed
container:
image: cypress/browsers:latest
options: --user 1001
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving Cypress Cloud hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
# run 3 copies of the current job in parallel
containers: [1, 2, 3]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -19,6 +23,8 @@ jobs:
# quote the url to be safe against YML parsing surprises
wait-on: "http://localhost:3001"
record: true
parallel: true
group: "Actions example"
env:
# pass GitHub token to allow accurately detecting a build vs a re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 55e8a94

Please sign in to comment.