ci: migrate to reusable PHP CI workflows#40
Merged
Conversation
Replace inlined workflows with thin callers of openCoreEMR/github-workflows-public@0.0.4, matching the pattern established by openCoreEMR/oce-module-perspectives-scribe#8. Migrated: actionlint, composer-validate, php-syntax-check, phpcs, phpstan, phpunit, rector. Each caller pins the reusable to @0.0.4 and adds the path filters recommended by the github-workflows-public README. Skipped (CLI-specific or already migrated): build-phar.yml, build-phar-on-release.yml, release-please.yml. phpunit caller uses php-tests.yml with php-versions ["8.2"] and test-script "composer test:unit" (preserves the unit-only suite the inlined workflow ran; integration/e2e need a DB and stay out of CI).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace inlined CI workflows with thin callers of
openCoreEMR/github-workflows-public@0.0.4, matching the pattern established by openCoreEMR/oce-module-perspectives-scribe#8.Migrated
actionlint.ymlactionlint.ymlcomposer-validate.ymlphp-composer-script.yml(composer validate --strict,install-deps: false)php-syntax-check.ymlphp-composer-script.yml(composer php-lint,install-deps: false)phpcs.ymlphp-composer-script.yml(composer phpcs)phpstan.ymlphp-composer-script.yml(composer phpstan)phpunit.ymlphp-tests.yml(php-versions: ["8.2"],test-script: composer test:unit)rector.ymlphp-composer-script.yml(composer rector)Every
php-composer-scriptcaller pinsphp-version: '8.2'(the reusable's default) so the file is self-documenting. Each caller also adds thepaths:filter the github-workflows-public README recommends for that check.Stayed inlined
build-phar.yml,build-phar-on-release.yml— CLI-specific PHAR build, no reusable counterpart yet.release-please.yml— already migrated separately.Notes
phpunitcaller preserves the unit-only behavior of the previous inlined workflow (vendor/bin/phpunit --testsuite unit --testdox); integration / e2e suites need a database and stay out of CI.composer-normalize,conventional-pr-title, anddclintcallers is planned separately.Test plan