chore/migrate CI from Travis to GitHub Actions#16
Merged
Conversation
Travis CI no longer runs against the repo, so PRs cannot get a green test status. Replace .travis.yml with two GitHub Actions workflows: - .github/workflows/ci.yml runs on push to main and on every pull request. The test job matrices PHP 7.0–7.4 against prefer-lowest yes/no, runs phpcs and phpunit. The lint-md job runs the existing Makefile target. A composer step disables audit.block-insecure (added in Composer 2.7) so the resolver doesn't refuse the pinned-by-design legacy phpunit and symfony/process versions; the step soft-fails on Composer < 2.7 (used on PHP 7.0/7.1 via setup-php) since older composer doesn't have that feature anyway. - .github/workflows/docs.yml runs on push to main, builds mkdocs and deploys to gh-pages via peaceiris/actions-gh-pages, replacing the old Travis Pages stage. Drop nightly PHP and the Scrutinizer coverage upload — both can be re-added later if desired; they're not load-bearing for the PR gate. Replace the Travis build-status badge in README with one pointing at the new ci.yml workflow. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Migrates the repository’s CI and docs deployment from Travis CI to GitHub Actions so PRs and main pushes regain automated status checks and docs publishing.
Changes:
- Add GitHub Actions CI workflow to run
composer update,phpcs, andphpunitacross a PHP version × prefer-lowest matrix. - Add GitHub Actions workflow to build and publish mkdocs output to
gh-pages. - Remove Travis configuration and update the README build badge to point at GitHub Actions.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
README.md |
Replaces the Travis badge with a GitHub Actions CI badge. |
.travis.yml |
Removes the obsolete Travis CI configuration. |
.github/workflows/ci.yml |
Introduces the GitHub Actions CI matrix for PHP + prefer-lowest and runs lint/tests. |
.github/workflows/docs.yml |
Adds a GitHub Actions workflow to build and deploy mkdocs to gh-pages. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Rename matrix key prefer-lowest -> prefer_lowest. Both work in practice (the SE2-752 trial run had all 11 jobs pass), but underscores are the documented convention for matrix variables referenced via dot-notation in expressions. - Drop keep_files: true from the docs deploy. Without it, mkdocs generated output replaces the gh-pages tree cleanly so removed pages don't linger. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Coverage upload to Scrutinizer was removed alongside the Travis migration (no equivalent step in the new GitHub Actions workflow), so both Scrutinizer badges will go stale. Drop them. Re-add a coverage badge once we pick a successor (Codecov, Coveralls, etc.). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Collaborator
|
I'm glad to finally see travis being dropped and a return to a working build pipeline. 🎉 |
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
Travis CI no longer runs against this repo, so every PR ends up stuck without a build status. Replace
.travis.ymlwith GitHub Actions so PR gating actually works again.Notable changes
.github/workflows/ci.yml— runs on push tomainand every pull request.prefer-lowestyes/no = 10 jobs. Mirrors the old Travis matrix and adds 7.4.composer config platform.php $(php -v), thencomposer update, thenphpcs+phpunit.composer config audit.block-insecure falsebefore resolve so Composer 2.7+ doesn't refuse the pinned-by-design legacyphpunitandsymfony/processversions. Step soft-fails on Composer < 2.7 (PHP 7.0/7.1 ship with Composer 2.2 viasetup-php, which doesn't recognise the key but doesn't have the feature either).lint-mdjob runsmake lint-md(the existing Makefile target)..github/workflows/docs.yml— runs on push tomain, builds mkdocs, deploys togh-pagesviapeaceiris/actions-gh-pages@v4. Replaces the old Travis Pages deploy stage..travis.yml.ci.yml.Dropped vs. the old Travis config
nightlyPHP: was alreadyallow_failuresin Travis. Re-add later if desired.QA
Deployment
N/A — CI-only.