Push-and-pray 그만
Act (nektos/act) 가 GitHub Actions workflow 를 Docker 에서 로컬 실행. 유용: CI 분 안 태우고 Actions tab 을 'fix typo' commit 으로 오염 안 하고 workflow YAML 반복, matrix 확장 디버깅, expression 검증.
설치 + 실행
brew install act # 또는: gh extension install nektos/gh-act
act -W .github/workflows/ci.yml
act -W .github/workflows/ci.yml -j test # 특정 job
act pull_request # 특정 event
제한
- Act 는 Docker 에서 돔; macOS job 은 Linux Act 호출에서 못 돔.
- 일부 GitHub-hosted 기능 (Apple 특정 action, secret vault, OIDC) 은 로컬에서 동작 안 함.
- Image 가 GitHub 의 것과 다름; 작은 깜짝 기대.
동반 도구
actionlint— workflow YAML 정적 lint. Event 이름, expression 의 typo 등 실행 없이 잡음.gh act— act 감싸는 GitHub CLI 확장.