Skip to content

Add reusable GitHub Actions workflows for module CI#1054

Merged
mikelittle merged 4 commits into
masterfrom
add-gha-ci
May 6, 2026
Merged

Add reusable GitHub Actions workflows for module CI#1054
mikelittle merged 4 commits into
masterfrom
add-gha-ci

Conversation

@mikelittle
Copy link
Copy Markdown
Contributor

@mikelittle mikelittle commented Apr 30, 2026

Summary

Replaces the Travis import templates (travis/module.yml, travis/altis.yml) with reusable GitHub Actions workflows that module repos call from their own .github/workflows/ci.yml.

  • module-ci.yml — skeleton install, package-under-test injection, codecept/phpunit, lintdocs. Mirrors travis/module.yml step-for-step.
  • altis-ci.yml — simpler workflow for the skeleton/altis-empty package.
  • .github/workflows/README.md — documents inputs, required secrets, and the SHA-pinning convention.

The thin caller .github/workflows/ci.yml lets this repo self-test the workflow.

Companion PRs

This must merge first so the per-module PRs can resolve humanmade/altis-dev-tools/.github/workflows/module-ci.yml@master. Once landed, run scripts/update-module-gha-ref.sh <sha> from humanmade/product-dev to pin all callers to a SHA.

The Travis files (travis/module.yml, travis/altis.yml, .travis.yml) stay in place for the side-by-side migration period and will be removed in a follow-up.

Test plan

  • ci.yml self-test runs green against module-ci.yml@master post-merge
  • DOCKER_USERNAME / DOCKER_PASSWORD repo secrets are set
  • Codeception output uploads as artifact on a forced failure

🤖 Generated with Claude Code

Replaces travis/module.yml and travis/altis.yml with reusable GHA
workflows. Module repos call these from their own ci.yml.

* module-ci.yml — per-module CI (skeleton install, codecept/phpunit, lintdocs)
* altis-ci.yml — for the skeleton/empty package
* README.md documents inputs, required secrets, and the SHA-pinning convention

Also adds the self-test caller at .github/workflows/ci.yml using @master.
After merge, pin callers to a SHA via scripts/update-module-gha-ref.sh
in humanmade/product-dev.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
mikelittle and others added 2 commits April 30, 2026 18:31
Reframe docs/continuous-integration.md so GitHub Actions is presented as
the recommended CI for Altis, with a "Using Travis CI" section that keeps
Travis as a fully supported option for projects users run on their own.

* Replace the auto-installed Travis template description with the
  altis-ci.yml reusable workflow caller template.
* Rewrite "Conditional Builds" with GHA on/branch filters; keep a Travis
  example for users still on Travis.
* Replace "Migrating From An Existing Travis Config" / "Overriding The
  Base Config" with guidance for extending the GHA reusable workflow.
* docs/testing-with-codeception.md — drop "on Travis" from the CI link.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The altis/dev-tools-command composer plugin copies this template to
.github/workflows/ci.yml on `composer create-project altis/skeleton` (and
on subsequent `composer install` runs while the file remains unchanged
from the template), with the `@<ref>` pinned to the installed dev-tools
version. This replaces the previous flow that auto-installed a
.travis.yml on new projects.

The plugin update lives in humanmade/altis-dev-tools-command and
gracefully bails on dev-tools versions that ship without this template,
so order of merge is not load-bearing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
jerico
jerico approved these changes May 6, 2026
Comment thread .github/workflows/module-ci.yml Outdated
The caller workflow's existence is the "run CI for this module" signal;
gating on tests/*.suite.yml was codecept-specific and would silently skip
PHPUnit-only modules despite the test-command: phpunit input.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mikelittle mikelittle merged commit d98eff2 into master May 6, 2026
1 check was pending
@mikelittle mikelittle deleted the add-gha-ci branch May 6, 2026 09:58
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.

3 participants