Skip to content
Go back

My CI Was Configured For Months And Had Never Run Once πŸ’€

(updated )

There is a particular kind of quiet that comes from a status check that never runs. Not green. Not red. Nothing at all, which the eye reads as fine.

I had that for months. Not because the workflow was broken β€” it was syntactically perfect, lint-clean, well commented. It was simply waiting for an event that this repository never produces.

What the trigger actually said

The workflow opened like this:

on:
  pull_request:
    types:
      - opened
      - edited
      - synchronize
      - reopened
  workflow_call:

Two triggers. pull_request fires when someone opens or updates a pull request. workflow_call fires when another workflow calls this one as a reusable job.

I do not open pull requests on this repository. I commit and push to master, usually within a minute of deciding to. And nothing calls the workflow β€” I checked, there is not a single uses: pointing at it anywhere in .github/workflows/.

So both triggers were wired to events that have never happened. The workflow was not misconfigured so much as unemployed.

The check that was running, and what it was not doing

A push did run something: the deploy workflow. It installs dependencies, builds the site, and ships it with wrangler deploy.

That is a real check, and it is the important one, because a broken build means nothing ships. But it is a narrow check. It asks one question β€” does this compile β€” and it stops there. Linting and formatting were never part of it, because the deploy pipeline’s job is to ship, not to grade.

So the honest version of my situation was: the only automated gate on a push was a build, and the workflow that would have caught everything else had been asleep the whole time.

Which is how a commit with two eslint errors reached master and stayed green everywhere.

The moment it started running

Fixing the trigger was one line. Adding push: branches: [master] meant the next push would actually execute the thing.

It failed in about nine seconds.

Node.js v20.20.2 is not supported by Astro!
Please upgrade Node.js to a supported version: ">=22.12.0"

The matrix pinned Node 20. Astro 7 will not start below 22.12. The build step could never have passed on that runner β€” not because of anything I had done that day, but because the pin had aged out from under it.

And I would not have known, because the workflow that would have told me had not run since the pin was new.

The fix was not interesting: deploy.yml had been using Node 24 on the same repository, running the same pnpm run build, succeeding every time. So CI now matches it. Chasing a second supported version for a personal blog is work that buys nothing.

The timeout moved too, from three minutes to fifteen. astro check plus astro build plus pagefind had no room in three on a cold runner, and a timeout that is too tight is indistinguishable from a failure.

The second bug, which was hiding behind the first

With the Node version fixed, the next run got further and found the thing CI had been built to find but never had.

Lint passed. Format did not β€” prettier --check was unhappy with 47 files. Not one stray comma. Forty-seven.

That number told me what had happened: formatting had never been enforced, so the codebase had drifted away from its own declared style at the rate of one carelessly formatted file per week, for however many weeks. The rule existed in package.json. Nothing ever read it.

The obvious fix is prettier --write ., and that is where it got genuinely interesting.

Prettier was corrupting my posts

Running it across the repository broke the build immediately:

Implicit keys need to be on a single line at line 15, column 3:
- dns
  ^

Prettier had reformatted the YAML frontmatter of a post and, in doing so, reindented a block sequence. The tags: list came out dedented to column zero β€” which is valid YAML β€” but the sibling keys underneath it stayed indented two spaces, and that is not. To the parser, pubDatetime, modDatetime and draft were no longer siblings of tags. They were a nested mapping belonging to the last list item, - dns.

The failure is worth sitting with, because it means the formatter was not merely touching my content β€” it was breaking it, in a way that only shows up when the site is built. Anyone running npm run format on this repository would have corrupted a post and had no idea until the next build.

So the fix was not to reformat around it. Content markdown came out of prettier’s scope entirely, with /src/data/blog/** added to .prettierignore. Posts are hand-authored. A machine deciding that a list should sit at a different indent than the keys below it is not a style preference I want applied to them.

The remaining twenty files were code β€” .astro, a TypeScript config, a package manifest, one stylesheet. Astro’s frontmatter is TypeScript rather than YAML, so none of them share that failure mode.

Proving the reformat changed nothing

Formatting twenty files and calling it cosmetic is a claim, not a fact. So I built the site before and after and compared the output.

Files compared in dist/205
Missing0
Added0
Content changed0

Fingerprinted asset names were normalised before comparing, since reformatting CSS can legitimately change a content hash and therefore a filename. Everything else β€” every rendered page, the RSS feed, the sitemap β€” came out identical.

That is the check I should have been able to run all along, and it is the one that made the reformat safe to commit rather than merely plausible.

What I actually took from it

A check that never fails is indistinguishable from a check that never runs. Both look like silence, and silence reads as health.

The specific failure was a trigger pointing at an event my workflow never produces. But the general shape is bigger than that: any gate you have not seen fail is a gate you are assuming works. I had assumed for months. The assumption held right up until the truth became inconvenient β€” which is exactly the property you do not want in a safety net.

Test the alarm. Break something on purpose. Watch the red, once, so that you know red is available to you.

The trigger now fires on every push to master, all twelve steps pass on Node 24, and the repository has a formatting baseline that is actually enforceable instead of aspirational.

If you have a workflow you have never seen fail β€” I would like to hear how you found out. πŸ‘‡


Share this post on:

Previous Post
Two Cache Rules Matched One File β€” And Cloudflare Applied Both 🧾
Next Post
My Hourly Uptime Check Was Running Every Four Hours ⏱️