Skip to content

Replace Travis CI with GitHub Actions - #13

Merged
ellisgl merged 1 commit into
mainfrom
add-ci
Nov 25, 2026
Merged

ellisgl merged 1 commit into
mainfrom
add-ci

Conversation

@ellisgl

@ellisgl ellisgl commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Travis CI no longer runs free builds for open source, so the badge has been permanently broken. This replaces it with GitHub Actions, matching the other GeekLab packages.

CI

  • Tests: the Codeception unit suite (22 tests) on PHP 8.1–8.5
  • Quality: PHPStan level 10 and PHP_CodeSniffer (PSR-12), on PHP 8.5
  • New composer test, composer phpstan and composer phpcs scripts

Fixes so CI passes from the first run

  • Added array value types to Arrays, and a mixed type to Is::empty()'s parameter.
  • Removed two always-true checks from Is::empty(). The trailing 0 !== … && '0' !== … could never be false once the value is '' or null, so the result is the same for every input.
  • Two PSR-12 fixes: a lowercase null, and brace placement in Arrays::explore().

Removed: .travis.yml and the Travis badge. Added CI, Packagist, PHP version and PHPStan badges.

Everything passes locally on PHP 8.5.

🤖 Generated with Claude Code

- Run the Codeception unit suite on PHP 8.1-8.5
- Run PHPStan (level 10) and PHP_CodeSniffer (PSR-12) on PHP 8.5
- Remove .travis.yml; Travis no longer runs free builds for open source
- Add composer test, phpstan and phpcs scripts
- Fix what PHPStan and PHPCS reported: array value types, a mixed
  type for Is::empty(), two always-true checks in Is::empty() (same
  results for every input), and two PSR-12 issues
- Replace the dead Travis badge with CI, Packagist, PHP and PHPStan badges

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ellisgl
ellisgl merged commit 2db52c9 into main Nov 25, 2026
7 checks passed
@ellisgl
ellisgl deleted the add-ci branch November 25, 2026 15:22
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.

1 participant