Manuals / Cypress / Chapter 9

D · Delivery · intermediate · Week 7–8 · Chapter 9 of 12

CI, parallelization, and artifacts

Cypress in GitHub Actions with video/screenshot upload, caching, and optional Cypress Cloud parallelism. Retries are signal — not normalized flake acceptance.

Path progress
69%

Step 1 of 4

GitHub Actions workflow

Use cypress-io/github-action for install, cache, run, and artifact upload in one step.

GitHub Actions workflowDrag stickies · tap for tips
Study mapDrag stickies · tap for tipsKeep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Assert the UIdrag · tap →Retry wiselydrag · tap →Seed datadrag · tap →Close the loopdrag · tap →Keep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Pathwise hackdrag · tap →GitHub Actions wordrag · tap →Try thisdrag · tap →Follow the dashed drag · tap →

Example

name: Cypress
on: [push, pull_request]
jobs:
  cypress-run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: cypress-io/github-action@v6
        with:
          browser: chrome
          config-file: cypress.config.js

Do this now

Add .github/workflows/cypress.yml. Green run on push to main.

Was this step clear?
Chapter learning outcomes
  • cypress-io/github-action
  • Artifact upload
  • Retries config
  • Record key optional

Clear these before you leave

Side quest

PR check

Open PR that adds CI. Required check before merge (if repo settings allow).