Skip to content

ci: adopt shared PHP validation and release workflows - #234

Merged
neilime merged 1 commit into
mainfrom
feat/shared-php-workflows
Nov 11, 2026
Merged

neilime merged 1 commit into
mainfrom
feat/shared-php-workflows

Conversation

@neilime

@neilime neilime commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Replace duplicated PHP setup and CI jobs with shared Composer workflows for the CSS lint package. Add manual and weekly releases gated on successful source validation.

Changes

  • Use GitHub self-repository references ($/) for local actions and reusable workflows.
  • Pin shared GitHub Actions and reusable workflows, including ci-github-common 4.2.0 and ci-github-publish 3.0.2. Use repository-configured PR-title validation with only contents: read.
  • Retain the project lint/test commands. Discover root and tooling Composer manifests, allow only configured plugins, and keep installation scripts disabled.
  • Define JUnit and Clover generation in the project's test:ci script. The same command runs on every PHP version; only the primary version publishes coverage. Test the Git source distribution in an isolated production consumer and check valid and invalid CSS through the installed CLI.
  • Keep fixture preparation in test:ci, attaching report arguments only to the PHPUnit command; configure its coverage and fixture cache together in the test input. Build PHP API documentation during validation and reuse its artifact for Pages.
  • Plan versions from Conventional Commits, preserve the existing tag prefix, and support no-change detection, manual force, and tag recovery. Keep PR release labeling separate. Follow prepare → validate → release. Preparation plans the tag without repository changes; validation runs only when preparation is ready, and publication receives that exact tag. No-change runs skip both validation and publication. Distribution checks do not upload a release artifact. Composer versions come from tags; no version commit or GitHub App is required.
  • Use composer.json as the PHP support declaration: discover the newest stable compatible patch of every minor without a version file or explicit CI matrix. PHP version discovery runs as a Docker-backed action on Linux. Local Docker builds use the same resolver and reuse the existing workflow commit pin automatically, with PHP_VERSION overrides still available. There is no separate resolver revision to maintain; missing or conflicting workflow pins stop the build before downloading anything. make help needs no resolver/network call; discovery failures stop the build.

Validation

Latest stable action/workflow releases verified on 2026-11-11. All external pins, supplied inputs/secrets, required reusable workflow inputs/secrets, referenced outputs and local paths match released metadata. Actionlint, YAML formatting and git diff --check pass; Zizmor introduces no findings relative to the previous PR revision.

Release update: every PHP action/workflow pin resolves to 2.0.0, and supplied inputs match its released interfaces. The workflow pins remain consistent with local Makefile discovery. Final CI results are available in this PR.

Actionlint, YAML/Markdown formatting, action/workflow interface checks, Makefile discovery/update/missing-pin/conflicting-pin/override checks, and git diff --check pass. Zizmor reports no new findings relative to the previous PR revision. The shared resolver has passing PHPUnit and integration checks covering real release discovery and explicit overrides. The consumer's source, package and documentation checks run on this commit in GitHub Actions.

Dependency and release setup

Uses ci-github-php 2.0.0, pinned to its release commit b81aa7b46f6b7a18ff1d9582c918cc1cc8296b98. The PHP discovery dependency is released; this PR does not depend on the separate Node.js migration. Other shared dependencies remain pinned to ci-github-common 4.2.0 and ci-github-publish 3.0.2.

Keep the manual/weekly prepare → validate → release flow. Configure permission for the workflow token to create release tags/releases and the repository's Packagist update integration. CHANGELOG_SUMMARY is optional; no GitHub App is required. See the shared release guide. No merge, tag or release is requested by this update.

@github-actions github-actions Bot added the type: maintenance Performs maintenance work label Nov 5, 2026
@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.30%. Comparing base (1b1a322) to head (6ee41ca).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #234   +/-   ##
=========================================
  Coverage     96.30%   96.30%           
  Complexity      509      509           
=========================================
  Files            38       38           
  Lines          1514     1514           
=========================================
  Hits           1458     1458           
  Misses           56       56           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@neilime
neilime force-pushed the feat/shared-php-workflows branch from 73e0d4c to d4f4e54 Compare November 6, 2026 19:57
@neilime neilime changed the title ci: adopt shared PHP validation and release workflows ci: adopt shared PHP validation and Composer releases Nov 6, 2026
@neilime
neilime force-pushed the feat/shared-php-workflows branch 11 times, most recently from d6b9faf to 6b62338 Compare November 8, 2026 18:41
@neilime neilime changed the title ci: adopt shared PHP validation and Composer releases ci: adopt shared PHP validation and release workflows Nov 8, 2026
@neilime
neilime force-pushed the feat/shared-php-workflows branch 4 times, most recently from 7d8c99b to f31be42 Compare November 10, 2026 23:43
@neilime
neilime force-pushed the feat/shared-php-workflows branch 4 times, most recently from fd46a7c to fee34da Compare November 11, 2026 15:14
Replace repository-specific PHP setup and CI with shared Composer workflows.
Validate source archives as production dependencies and add manual/scheduled
release planning and publication with no-change and recovery support.

Pin GitHub Actions and reusable workflows to current stable releases.
Adapt workflow permissions and repository-configured PR title validation.
@neilime
neilime force-pushed the feat/shared-php-workflows branch from fee34da to 6ee41ca Compare November 11, 2026 17:44
@neilime
neilime marked this pull request as ready for review November 11, 2026 17:51
@neilime
neilime merged commit 0e13bf0 into main Nov 11, 2026
18 of 20 checks passed
@neilime
neilime deleted the feat/shared-php-workflows branch November 11, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: maintenance Performs maintenance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant