Commit ef42b1b
ci: split test-and-sync into two workflows (#36)
## Summary
The previous \`test-and-sync.yml\` had both jobs in one workflow, with
the sync job gated by \`if: github.event_name == 'push' && github.ref ==
'refs/heads/main'\`. That made \`Sync ArgoCD\` appear as a \`skipping\`
entry on every PR's check list — confusing because it looks like the
workflow is doing something on PR.
Split into two workflows so the PR's check list is just \`Pre-commit
Tests\`:
- \`test.yml\` — pre-commit on PR + push to main
- \`sync.yml\` — Sync ArgoCD on push to main only (and
\`workflow_dispatch\` for manual sync)
## Test plan
- [x] After merge, opening a PR shows only \`test / Pre-commit Tests\`
in the check list
- [x] Push to \`main\` triggers both \`test\` and \`sync\` workflows
- [x] \`sync\` workflow can still be manually re-run via \`gh workflow
run sync.yml\`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0f50a54 commit ef42b1b
2 files changed
Lines changed: 30 additions & 20 deletions
Lines changed: 1 addition & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 14 | | |
32 | 15 | | |
33 | 16 | | |
34 | 17 | | |
35 | 18 | | |
36 | | - | |
37 | | - | |
38 | 19 | | |
39 | 20 | | |
40 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments