CI/CD Pipelines: Advanced Techniques
Introduction to Advanced CI/CD
Modern CI/CD pipelines require advanced techniques to optimize speed, reliability, and efficiency. This guide covers best practices and techniques for building effective pipelines.
# GitHub Actions Matrix
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [14, 16, 18]
# Playwright sharding
npx playwright test --shard=1/4 # Runner 1 of 4
npx playwright test --shard=2/4 # Runner 2 of 4
Frequently asked questions
What strategies are used to collect pipeline metrics?
# Collecting pipeline metrics
How do I add a section titled 'Pipeline Metrics' to the metrics.md file?
echo "## Pipeline Metrics" >> metrics.md
What command can be used to record the job duration in the metrics.md file?
echo "- Duration: $CI_JOB_DURATION" >> metrics.md
How do I log the job status into the metrics.md file?
echo "- Status: $CI_JOB_STATUS" >> metrics.md
▶ Try it live
Everything above runs in your browser — open Hash Function Avalanche Visualizer and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.