Files
FOSSBilling/.github
Adam Daley 1f70144e71 Speed up CI: share Docker test image, dedupe PHPStan, fix cache contention (#3933)
* Speed up CI: share Docker test image, dedupe PHPStan, fix cache contention

live-tests and cypress-tests each independently rebuilt the same PHP 8.5
test image already built by the php-build-test matrix, paying for a
registry-cache pull each time. Build it once, export it as a workflow
artifact, and have live-tests/cypress-tests just docker load it.

PHPStan analyzes source, not runtime behavior, so running it identically
across all 3 PHP versions in the matrix was pure duplication. Now it runs
once, on PHP 8.3.

php-build-test-push and preview-build-push wrote to the shared GHCR
registry cache on every push to every branch, not just main. Concurrent
branch pushes (including frequent bot autofix branches) could stomp on
each other's cache entries, degrading hit rates for everyone. Cache
writes are now restricted to main; other branches read-only, same as the
existing PR path.

* Trim comment verbosity to match existing workflow style

The repo's existing workflow comments are single-line "why" notes; tighten
the multi-line ones added in the previous commit to match, and drop an
unused step id.
2026-07-07 06:34:37 +01:00
..
2026-07-02 20:08:20 +01:00