Skip to content

ci: migrate to reusable PHP CI workflows#25

Merged
kojiromike merged 2 commits into
mainfrom
kojiromike/use-reusable-workflows
May 11, 2026
Merged

ci: migrate to reusable PHP CI workflows#25
kojiromike merged 2 commits into
mainfrom
kojiromike/use-reusable-workflows

Conversation

@kojiromike

Copy link
Copy Markdown
Contributor

Summary

Migration to the reusable PHP CI workflows in openCoreEMR/github-workflows-public@0.0.2. Replaces the inlined workflows with thin callers.

Same pattern as the pilot: openCoreEMR/oce-lib-module-config#13. This repo also uses the dclint and hadolint reusables.

Reusable workflows can't natively propagate the if: ${{ !github.event.repository.is_template }} guard on the called job. The guard is applied to the JOB in each thin caller (not the called workflow's job) so that the template repo itself does not run PHP CI.

Test plan

  • PHP CI jobs (composer-validate, composer-normalize, composer-require-checker, php-syntax-check, phpcs, phpstan, rector, tests) skip when the repository is the template
  • Generic CI jobs (actionlint, conventional-pr-title, dclint, hadolint) run on the template
  • All jobs run on consumer repos that are forked from the template

Replaces inlined workflows with thin callers to
openCoreEMR/github-workflows-public@0.0.2.
@kojiromike kojiromike merged commit b628c23 into main May 11, 2026
11 checks passed
@kojiromike kojiromike deleted the kojiromike/use-reusable-workflows branch May 11, 2026 16:10
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