Skip to content

PMX: Give main its own sanity check and rename the CI workflow - #7

Merged
codebend3r merged 5 commits into
mainfrom
sanity-check-workflow
Sep 6, 2026
Merged

codebend3r merged 5 commits into
mainfrom
sanity-check-workflow

Conversation

@codebend3r

@codebend3r codebend3r commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Splits CI into the two questions it was conflating: does this pull request pass, and is main healthy. The renamed pull-request-checks.yml now answers only the first, and a new sanity-check.yml answers the second — a signal the current setup can silently lose.

pull-request-checks.yml

  • .github/workflows/ci.yml renamed to .github/workflows/pull-request-checks.yml — the file only ever ran pull-request checks
  • top-level workflow name: goes from 🔁 CI to 🧪 Pull request checks
  • on: is now pull_request: alone — push: and workflow_dispatch: are gone, so pull request checks never run on main
  • the comment above concurrency is deleted rather than reworded — it described a double-run condition that no longer exists
  • job id checks and job name 🔍 Checks are unchanged from main

sanity-check.yml

  • new ✅ Sanity check workflow, triggered on push: branches: [main] only
  • runs bun run system-checkformat:check, build:types, lint, test, build:vite
  • sets cancel-in-progress: false, where pull-request-checks.yml sets cancel-in-progress: true unconditionally — a rapid second push to main can cancel the first push's run and leave no completed record for that commit
  • writes a pass or fail line to $GITHUB_STEP_SUMMARY naming the short SHA
  • deploy.yml already builds, tests, and deploys on push to main, but gives no "is main healthy" signal independent of the deploy pipeline

Verification

  • one run per commit now, confirmed on 0cb7770gh run list shows a single pull_request run, against two runs each (pull_request + push) for every earlier commit on this branch
  • 🔍 Checks green on this PR, confirming the job id and name still resolve after the file rename
  • bun run system-check green locally on each push via the pre-push hook — oxfmt --check on 129 files, tsc -b, oxlint, 143 tests passed / 2 skipped, vite build
  • git diff main...HEAD --stat touches exactly two files; deploy.yml is untouched
  • sanity-check.yml has not executed yet — it triggers only on push to main, so it first runs when this merges

Notes

  • an earlier revision of this branch dropped only the branches: [main] scope, leaving push: unscoped — the branches: ['**'] case the old comment warned about. It ran 🧪 Pull request checks twice on every commit, once per event (runs 33989796613 and 33989799860 on d56814b). Restricting on: to pull_request resolves it
  • workflow_dispatch: was dropped alongside push: — a manual run of pull request checks has no pull request to check
  • branch and PR used here rather than the repo's default direct-to-main workflow, by request

- `🔁 CI` becomes `🧪 Pull Request Checks` — the file only ever runs
  pull-request checks, so the name should say so
- drop the `push: branches: [main]` trigger — the existing comment
  already notes `pull_request` covers branch pushes, so it was dead
  scope
- job id/name `checks`/`🔍 Checks` becomes `pull-request-checks`/
  `🚦 Pull request checks` to match the file rename
- `pull-request-checks.yml` sets `concurrency: cancel-in-progress: true`
  unconditionally — a rapid second push to `main` can cancel the first
  push's check run with no completed record left behind
- new `✅ Sanity check` workflow runs on `push: branches: [main]` only,
  with `cancel-in-progress: false`, so every push to `main` gets a
  completed run
- runs `bun run system-check` — `format:check`, `build:types`, `lint`,
  `test`, `build:vite` — the same full gate as pull requests
- `deploy.yml` already builds, tests, and deploys on push to `main`,
  but gives no standalone "is `main` healthy" signal independent of
  the deploy pipeline
@netlify

netlify Bot commented Sep 5, 2026

Copy link
Copy Markdown

Deploy Preview for thepokemax ready!

Name Link
🔨 Latest commit 0cb7770
🔍 Latest deploy log https://app.netlify.com/projects/thepokemax/deploys/6a9c808ec5f48100081c62a9
😎 Deploy Preview https://deploy-preview-7--thepokemax.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

- `🧪 Pull Request Checks` becomes `🧪 Pull request checks` to match
  the sentence-case convention used across workflow `name:` fields
- the file rename should not have touched the job — `pull-request-checks`/
  `🚦 Pull request checks` reverts to `checks`/`🔍 Checks`, verbatim from
  `main`
- only the top-level workflow `name:` was meant to change, and it stays
  `🧪 Pull request checks`
- `on:` trigger changes are unaffected — the dropped `push: branches:
  [main]` scope stays dropped
@codebend3r codebend3r changed the title PMX: Add sanity-check.yml and finish CI rename PMX: Give main its own sanity check and rename the CI workflow Sep 5, 2026
- bare `push:` was unscoped, which is the `branches: ['**']` case the
  file's own comment warned about — every commit on this branch ran the
  workflow twice, once per event (runs `33989796613` and `33989799860`
  on `d56814b`)
- `on:` is now `pull_request:` alone, so pull request checks never run
  on `main` — `sanity-check.yml` owns that signal
- `workflow_dispatch:` dropped: a manual run of PR checks outside a pull
  request has no branch to check against
- the comment above `concurrency` is deleted rather than reworded — the
  double-run condition it described no longer exists
@codebend3r
codebend3r merged commit 9ff2abc into main Sep 6, 2026
5 checks passed
@codebend3r
codebend3r deleted the sanity-check-workflow branch September 6, 2026 12:17
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