Back to Cheat SheetsCI/CD · Intermediate

CI/CD cheat sheet

Pipeline concepts, gates and a GitHub Actions template for test execution.

Concepts

CI

Every commit is built and tested automatically

CD

Every green build is deployable / deployed

Quality gate

Pipeline fails on test failure, coverage drop or security finding

Shift left

Fast unit + API checks on PR, full regression nightly

GitHub Actions template

Workflow

on: [pull_request]
jobs:
 test:
  strategy: { matrix: { shard: [1,2,3,4] } }
  steps:
   - uses: actions/checkout@v4
   - run: npm ci
   - run: npx playwright test --shard=${{ matrix.shard }}/4

Publish report

- uses: actions/upload-artifact@v4
  with: { name: report, path: playwright-report }

Go beyond the reference

Book a free demo class and apply these commands on live project work.