Skip to content

Commit

Permalink
Split large job into two jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmontville committed Jan 11, 2024
1 parent c56be6d commit 1fc0d6c
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,20 @@ jobs:
echo "Captured URL: ${{ steps.firebase_deploy.outputs.deploy_url }}"

# Step 5: Cypress tests
Cypress tests:
# Step 5: Cypress tests
cypess_end_to_end:
name: Cypress run
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false # https://github.com/cypress-io/github-action/issues/48
matrix:
browser: [ chrome, firefox ]
containers: [ 1, 2 ] # Uses 2 parallel instances
steps:
- name: checkout
uses: actions/checkout@v4
- name: Cypress run
runs-on: ubuntu-latest
strategy:
fail-fast: false # https://github.com/cypress-io/github-action/issues/48
matrix:
browser: [ chrome, firefox ]
containers: [ 1, 2 ] # Uses 2 parallel instances
uses: cypress-io/github-action@v6
with:
build: echo "Build step already completed"
Expand All @@ -55,4 +60,4 @@ jobs:
env:
CYPRESS_BASE_URL: ${{ env.FIREBASE_DEPLOY_URL }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1fc0d6c

Please sign in to comment.