diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 72e4ff1..82534c2 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,20 +1,26 @@ name: Testing on Ubuntu on: - - push - - pull_request + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: '0 0 1 * *' jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby + min_version: 2.7 build: + needs: ruby-versions runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - ruby: - - 2.7 - - "3.0" - - 3.1 - - 3.2 - - 3.3 - - 3.4 + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} + exclude: + - ruby: head os: - ubuntu-latest name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} @@ -28,7 +34,5 @@ jobs: env: CI: true run: | - gem install bundler -v 2.4.22 - gem install rake - bundle _2.4.22_ install --jobs 4 --retry 3 + bundle install --jobs 4 --retry 3 bundle exec rake test diff --git a/fluent-plugin-filter-split.gemspec b/fluent-plugin-filter-split.gemspec index 54d8024..4338f18 100644 --- a/fluent-plugin-filter-split.gemspec +++ b/fluent-plugin-filter-split.gemspec @@ -20,8 +20,8 @@ Gem::Specification.new do |spec| spec.test_files = test_files spec.require_paths = ["lib"] - spec.add_development_dependency "bundler", "~> 2.4.19" - spec.add_development_dependency "rake", "~> 13.0.6" + spec.add_development_dependency "bundler" + spec.add_development_dependency "rake" spec.add_development_dependency "test-unit", "~> 3.6.1" spec.add_runtime_dependency "fluentd", [">= 0.14.10", "< 2"] end