CI/CD & Deployment
When to use this skill
-
Configuring GitHub Actions workflows.
-
Setting up automated deployments.
-
Configuring test runners in CI.
- GitHub Actions
-
Triggers: on: push for branches, on: pull_request for verification.
-
Caching: Always cache dependencies (npm, pip, composer) to speed up builds.
-
uses: actions/setup-node@v4 with: node-version: 18 cache: 'npm'
- Deployment
-
Atomic: Deployment should be atomic (zero downtime).
-
Migration: Run DB migrations during deployment, but ensure backward compatibility.
-
Secrets: Use repo secrets; never strict commit credentials.