Run a complete CI-like workflow locally to catch issues before pushing:
Workflow
- •
Check git status:
bashcd /Users/bri/dev/Trebuchet && git status --short
Warn if there are uncommitted changes.
- •
Build in debug mode:
bashcd /Users/bri/dev/Trebuchet && swift build 2>&1 | tee /tmp/trebuchet-build-debug.log
- •
Build in release mode:
bashcd /Users/bri/dev/Trebuchet && swift build --configuration release 2>&1 | tee /tmp/trebuchet-build-release.log
- •
Run all tests:
bashcd /Users/bri/dev/Trebuchet && swift test 2>&1 | tee /tmp/trebuchet-test.log
- •
Check for warnings (excluding known unhandled file warnings):
bashgrep -i "warning:" /tmp/trebuchet-build-release.log | grep -v "found.*file.*which are unhandled" || echo "No warnings found"
Report Summary
Provide a summary with:
- •✅/❌ Debug build status
- •✅/❌ Release build status
- •✅/❌ Test status (include pass/fail counts)
- •Warning count
- •Overall CI Status: PASS or FAIL
Notes
- •Logs are saved to
/tmp/trebuchet-*.logfor detailed inspection - •This does NOT run LocalStack AWS tests (use
/test-awsfor those) - •Mirrors what would run in GitHub Actions CI
- •Helps catch issues before creating PRs