Migrate CI from Travis to GitHub Actions and add MySQL integration tests - #72
Merged
Conversation
- Replace .travis.yml with .github/workflows/ci.yml - Test Ruby 3.2, 3.3, 3.4 and 4.0 on Ubuntu (4.0 allowed to fail) - Run the suite against a MySQL 8.4 service container - Add real-connection integration tests for mysql_bulk output - Update CI badge in README from Travis to GitHub Actions Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Travis CI からの移行と、実 MySQL に接続する結合テストの追加です。構成は fluent-plugin-rewrite-tag-filter を参考にしています。
.travis.ymlを削除し、.github/workflows/ci.yml(GitHub Actions)に置き換えcontinue-on-errorで失敗を許容)mysql_bulk出力プラグインの 実接続テストを追加(bulk INSERT / VARCHAR 切り詰め /ON DUPLICATE KEY UPDATEのカスタム値)Notes
test/plugin/test_out_mysql_bulk_integration.rb)はモックせず実接続し、MySQL に接続できない場合は自動で omit するためローカルでも安全に実行できます。MYSQL_HOST/MYSQL_PORT/MYSQL_USER/MYSQL_PASSWORD/MYSQL_DATABASEの環境変数で上書き可能(既定値は CI の service 設定に一致)。schedule実行を追加(依存が緩く低頻度メンテのため、外部都合の breakage を早期検知する目的。理由はワークフローにコメント記載)。Test
ローカルで Docker の MySQL 8.4.9 + Ruby 3.4 に対して全テストを実行し green を確認:
```
18 tests, 63 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions
100% passed
```
🤖 Generated with Claude Code