Uh oh!
There was an error while loading. Please reload this page.
Migrate CI from Travis to GitHub Actions - #34
Conversation
There was a problem hiding this comment.
Pull request overview
Migrates the project’s CI pipeline from Travis CI to GitHub Actions, keeping the same high-level checks (PHP_CodeSniffer + PHPUnit + Scrutinizer coverage upload) while removing the Travis configuration and updating documentation badges.
Changes:
- Added a GitHub Actions CI workflow with a PHP matrix (7.3/7.4) and optional
--prefer-lowest, including Composer caching and Scrutinizer coverage upload. - Removed the legacy
.travis.ymlconfiguration. - Updated the README build status badge to point to the new GitHub Actions workflow.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
README.md | Replaces Travis build badge with GitHub Actions workflow badge. |
.travis.yml | Removes Travis CI configuration. |
.github/workflows/ci.yml | Adds GitHub Actions workflow implementing the CI matrix, lint/test steps, caching, and coverage upload. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
9dbb03b to
4ce6cd1Compare62f4d71 to
ecd49acCompareReplace .travis.yml with a GitHub Actions workflow. - Test PHP 7.4 with and without --prefer-lowest (both required to pass). - Pin the Composer platform to the runtime PHP version before update. - Run phpcs + phpunit. - Swap the README Travis badge for a GitHub Actions badge, and drop the dead Scrutinizer coverage upload + badges (scrutinizer-ci.com no longer serves ocular.phar). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Summary
Replaces Travis CI with a GitHub Actions workflow (
.github/workflows/ci.yml) and removes.travis.yml.7.4, with and without--prefer-lowest— both required to pass (no allowed-failures).composer update.coverage: none(nothing consumes coverage now), so no xdebug — runs in ~15s.composer.jsonhash.actions/checkout@v5/actions/cache@v5(avoids the Node 20 deprecation).ocular.phar— returns 403).No Composer audit workaround needed: with Symfony 5 (#33), PHPUnit 8.5 (#32), and the
mockery ^1.3.1floor (#35) on master, the full dependency set — including--prefer-lowest— resolves clean with no security advisories.Verification
Green on PHP 7.4 — both
PHP 7.4andPHP 7.4 (lowest)jobs pass (phpcs + 131 phpunit tests), no run annotations.Merge note
Master's branch protection still requires the retired
continuous-integration/travis-cistatus check, so this PR showsBLOCKED. It needs an admin merge — and since this PR is what adds the replacement Actions check, the bypass is the only way to land it. After merging, consider repointing the required check fromtravis-ci→ thePHP 7.4job.🤖 Generated with Claude Code