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 automaticallyCD
Every green build is deployable / deployedQuality gate
Pipeline fails on test failure, coverage drop or security findingShift left
Fast unit + API checks on PR, full regression nightlyGitHub 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 }}/4Publish 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.