Skip to content

Migrate CI from Travis to GitHub Actions#332

Merged
kadamwhite merged 2 commits intomainfrom
copilot/switch-travis-to-gh-actions
May 1, 2026
Merged

Migrate CI from Travis to GitHub Actions#332
kadamwhite merged 2 commits intomainfrom
copilot/switch-travis-to-gh-actions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 30, 2026

The repo was running on a legacy Travis CI setup — slow, unreliable, and out of step with the rest of the network. This replaces it with three focused GitHub Actions workflows, each scoped to its own area of the codebase via path filters.

Workflows

  • test-php.yml — PHP 8.2 & 8.3 matrix; triggers on changes to HM/**, HM-Minimum/**, tests/**, composer.json, phpunit.xml.dist, ruleset.xml
  • test-eslint.yml — Node 20/22/24 matrix; triggers on changes to packages/eslint-config-humanmade/**
  • test-stylelint.yml — Node 20/22/24 matrix; triggers on changes to packages/stylelint-config/**

Security & Pinning

All action dependencies are pinned to full commit SHAs with inline version comments:

uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5

All workflows set permissions: contents: read to enforce least-privilege on GITHUB_TOKEN.

.travis.yml is deleted.

Copilot AI linked an issue Apr 30, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Migrate Travis configuration to GitHub Actions Migrate CI from Travis to GitHub Actions Apr 30, 2026
Copilot AI requested a review from kadamwhite April 30, 2026 22:26
@kadamwhite kadamwhite marked this pull request as ready for review April 30, 2026 22:55
@kadamwhite kadamwhite merged commit e422cd5 into main May 1, 2026
9 checks passed
@kadamwhite kadamwhite deleted the copilot/switch-travis-to-gh-actions branch May 1, 2026 00:19
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.

Switch Travis to GH Actions

2 participants