Workflows Overview
YAML workflows live in .github/workflows; jobs run on runners.
Build CI/CD pipelines with GitHub Actions: workflows, secrets, matrix builds, and cloud deploys.
YAML workflows live in .github/workflows; jobs run on runners.
push, pull_request, schedule, and workflow_dispatch.
Reuse community actions; pin versions with commit SHA for security.
Run unit and integration tests on every PR.
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm testBuild artifacts once; promote the same build across environments.
GitHub Environments add approval gates and environment secrets.
Test multiple Node or Python versions in parallel.
actions/cache speeds dependency installs.
Store tokens in repo or org secrets; never log secret values.
Use OIDC federation instead of long-lived access keys.
kubectl apply or Helm upgrade from CI with kubeconfig secrets.
Slack or email on failure; publish test and coverage reports.