Migrate CI from Travis to GitHub Actions#34
Merged
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.
9dbb03b to
4ce6cd1
Compare
62f4d71 to
ecd49ac
Compare
Replace .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>
ecd49ac to
43d296a
Compare
Merged
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
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