Skip to content

Migrate CI from Travis to GitHub Actions#34

Merged
rick-lam merged 1 commit into
masterfrom
ci/github-actions
May 27, 2026
Merged

Migrate CI from Travis to GitHub Actions#34
rick-lam merged 1 commit into
masterfrom
ci/github-actions

Conversation

@rick-lam
Copy link
Copy Markdown
Contributor

@rick-lam rick-lam commented May 27, 2026

Summary

Replaces Travis CI with a GitHub Actions workflow (.github/workflows/ci.yml) and removes .travis.yml.

  • Matrix: PHP 7.4, with and without --prefer-lowestboth required to pass (no allowed-failures).
  • Pins the Composer platform to the runtime PHP version, then composer update.
  • Runs phpcs + phpunit (131 tests). coverage: none (nothing consumes coverage now), so no xdebug — runs in ~15s.
  • Caches Composer's download dir, keyed on PHP version + lowest flag + composer.json hash.
  • Uses actions/checkout@v5 / actions/cache@v5 (avoids the Node 20 deprecation).
  • README: Travis build badge → GitHub Actions badge; dead Scrutinizer coverage/quality badges removed (scrutinizer-ci.com no longer serves ocular.phar — returns 403).

No Composer audit workaround needed: with Symfony 5 (#33), PHPUnit 8.5 (#32), and the mockery ^1.3.1 floor (#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.4 and PHP 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-ci status check, so this PR shows BLOCKED. 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 from travis-ci → the PHP 7.4 job.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings May 27, 2026 11:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml configuration.
  • 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.

Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml Outdated
@rick-lam rick-lam force-pushed the ci/github-actions branch 2 times, most recently from 9dbb03b to 4ce6cd1 Compare May 27, 2026 14:11
@rick-lam rick-lam force-pushed the ci/github-actions branch 3 times, most recently from 62f4d71 to ecd49ac Compare May 27, 2026 14:45
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>
@rick-lam rick-lam force-pushed the ci/github-actions branch from ecd49ac to 43d296a Compare May 27, 2026 14:56
@rick-lam rick-lam merged commit 8f7405b into master May 27, 2026
2 checks passed
@rick-lam rick-lam mentioned this pull request May 28, 2026
@rick-lam rick-lam deleted the ci/github-actions branch May 28, 2026 18:01
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.

2 participants