Skip to content

ci: split test-and-sync into two workflows#36

Merged
xnoto merged 1 commit intomainfrom
ci/split-test-and-sync-workflows
Apr 30, 2026
Merged

ci: split test-and-sync into two workflows#36
xnoto merged 1 commit intomainfrom
ci/split-test-and-sync-workflows

Conversation

@xnoto
Copy link
Copy Markdown
Contributor

@xnoto xnoto commented Apr 30, 2026

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

  • After merge, opening a PR shows only `test / Pre-commit Tests` in the check list
  • Push to `main` triggers both `test` and `sync` workflows
  • `sync` workflow can still be manually re-run via `gh workflow run sync.yml`

🤖 Generated with Claude Code

Sync ArgoCD was an entry on every PR's check list (showing as
"skipping") because it lived in the same workflow as the pre-commit
test job, gated by an if condition. Split into two workflows so the
PR check list only contains the pre-commit run:

- test.yml — pre-commit on PR + push to main
- sync.yml — Sync ArgoCD on push to main only

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@xnoto xnoto self-assigned this Apr 30, 2026
@xnoto xnoto merged commit ef42b1b into main Apr 30, 2026
1 check passed
@xnoto xnoto deleted the ci/split-test-and-sync-workflows branch April 30, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant