From 3b75fca038714c9b1ddc1cea8b0ac600d4aa6299 Mon Sep 17 00:00:00 2001 From: Kenichi Takahashi Date: Mon, 20 May 2024 21:12:56 +0900 Subject: [PATCH] Set up matrix builds for different Active Support versions --- .github/workflows/ci.yml | 5 +++++ gemfiles/active_support_6.gemfile | 6 ++++++ gemfiles/active_support_7.gemfile | 6 ++++++ 3 files changed, 17 insertions(+) create mode 100644 gemfiles/active_support_6.gemfile create mode 100644 gemfiles/active_support_7.gemfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b189fd8..42cdeab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,13 @@ jobs: fail-fast: false matrix: ruby: [2.7, 3.0, 3.1, 3.2] + gemfile: ["active_support_6", "active_support_7"] runs-on: ubuntu-latest + env: + BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile + steps: - uses: actions/checkout@v2 @@ -18,5 +22,6 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler-cache: true + cache-version: ${{ matrix.gemfile }} - run: bundle exec rspec diff --git a/gemfiles/active_support_6.gemfile b/gemfiles/active_support_6.gemfile new file mode 100644 index 0000000..2672433 --- /dev/null +++ b/gemfiles/active_support_6.gemfile @@ -0,0 +1,6 @@ +source 'https://rubygems.org' + +gem 'activesupport', "~> 6.0" + +# Specify your gem's dependencies in global_sign.gemspec +gemspec path: '../' diff --git a/gemfiles/active_support_7.gemfile b/gemfiles/active_support_7.gemfile new file mode 100644 index 0000000..0617e04 --- /dev/null +++ b/gemfiles/active_support_7.gemfile @@ -0,0 +1,6 @@ +source 'https://rubygems.org' + +gem 'activesupport', "~> 7.0" + +# Specify your gem's dependencies in global_sign.gemspec +gemspec path: '../'