Skip to content

Migrate main-branch CI from Travis to GitHub Actions using reusable plugin workflows - #349

Merged
donoghuc merged 5 commits into
mainfrom
copilot/migrate-ci-from-travis-to-github-actions
Aug 21, 2026
Merged

Migrate main-branch CI from Travis to GitHub Actions using reusable plugin workflows#349
donoghuc merged 5 commits into
mainfrom
copilot/migrate-ci-from-travis-to-github-actions

Conversation

Copilot AI commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

This replaces Travis on main with GitHub Actions while preserving the same test intent: unit and Kafka-backed integration execution. The migration uses logstash-plugins/.ci@1.x reusable workflows and removes Travis-era wiring from this repo.

  • Workflow migration (unit + integration)

    • Added:
      • .github/workflows/unit-tests.yml
      • .github/workflows/integration-tests.yml
    • Both workflows use the shared reusable workflows on @1.x, include scheduled matrix fan-out for active branches, and forward repo/org secrets with secrets: inherit.
    • Slack notifications are explicitly disabled (notify-slack: false) per plugin requirement.
    • Added least-privilege token scope:
      • permissions: contents: read
  • Preserve plugin-specific integration behavior

    • Added repo-local .ci/run.sh override so reusable docker-run.sh executes the same test split expected by this plugin:
      • non-integration: bundle exec rake test
      • integration: Kafka setup + bundle exec rspec --tag integration + teardown trap
    • Script paths are anchored to repo root for stable execution regardless of cwd.
  • Repository cleanup

    • Deleted .travis.yml.
    • Replaced Travis badge in README.md with GHA badges for unit and integration workflows (?branch=main).
# .ci/run.sh behavior used by reusable docker-run.sh
if [ "${INTEGRATION}" = "true" ]; then
  trap "${REPO_ROOT}/kafka_test_teardown.sh" EXIT
  "${REPO_ROOT}/kafka_test_setup.sh"
  bundle exec rspec --tag integration
else
  bundle exec rake test
fi

Copilot AI and others added 4 commits August 14, 2026 20:42
Co-authored-by: donoghuc <15354214+donoghuc@users.noreply.github.com>
Co-authored-by: donoghuc <15354214+donoghuc@users.noreply.github.com>
Co-authored-by: donoghuc <15354214+donoghuc@users.noreply.github.com>
Co-authored-by: donoghuc <15354214+donoghuc@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate CI from Travis to GitHub Actions Migrate main-branch CI from Travis to GitHub Actions using reusable plugin workflows Aug 14, 2026
Copilot AI requested a review from donoghuc August 14, 2026 20:46

@donoghuc donoghuc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

new files added to support migration and shared workflows. the failures are unrelated to the migration. merging.

@donoghuc
donoghuc marked this pull request as ready for review August 21, 2026 21:34
@donoghuc
donoghuc merged commit 8dbd9f0 into main Aug 21, 2026
6 of 19 checks passed
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.

Migrate CI from Travis to GitHub Actions (main branch)

2 participants