From c122b8482d9e43c5b4df480dc5be8b43d0df0449 Mon Sep 17 00:00:00 2001 From: Drew Caddell Date: Wed, 12 Feb 2025 09:01:56 -0800 Subject: [PATCH 1/4] TECH-17382: Use shared pipeline workflow to pull in Ruby 3.4 tests --- .github/workflows/pipeline.yml | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 1e33639..4ad75a0 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -1,40 +1,8 @@ ---- name: Pipeline on: push: schedule: - cron: '0 1 * * 1' # Every Monday at 1AM UTC jobs: - ruby-versions: - runs-on: ubuntu-latest - outputs: - versions: ${{ steps.versions.outputs.supported_versions }} - steps: - - id: versions - uses: Invoca/supported_ruby_versions_action@main - tests: - name: Unit Tests - runs-on: ubuntu-latest - needs: ruby-versions - strategy: - fail-fast: false - matrix: - ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} - gemfile: - - Gemfile - - gemfiles/unlocked.gemfile - env: - BUNDLE_GEMFILE: ${{ matrix.gemfile }} - steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler: 2.2.29 - bundler-cache: true - - uses: nick-fields/retry@v3 - with: - max_attempts: 2 - timeout_minutes: 5 - command: bundle exec rake test + uses: Invoca/ruby-test-matrix-workflow/.github/workflows/ruby-test-matrix.yml@main From e3f0e0016f5a60a3e35efc022eaf6b1182387d87 Mon Sep 17 00:00:00 2001 From: ishakun Date: Fri, 14 Feb 2025 16:47:29 -0600 Subject: [PATCH 2/4] TECH-17382: override the default test command --- .github/workflows/pipeline.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 4ad75a0..64cfd76 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -6,3 +6,5 @@ on: jobs: tests: uses: Invoca/ruby-test-matrix-workflow/.github/workflows/ruby-test-matrix.yml@main + with: + test-command: "bundle exec rake test" From 33567c14bac50f931d3a46ea21f6628a5187bd3b Mon Sep 17 00:00:00 2001 From: ishakun Date: Fri, 14 Feb 2025 16:53:50 -0600 Subject: [PATCH 3/4] Empty-Commit From 360d37d5675fbd65014a6f9f68a96989e9546903 Mon Sep 17 00:00:00 2001 From: ishakun Date: Fri, 14 Feb 2025 17:00:33 -0600 Subject: [PATCH 4/4] TECH-17382: add mutex-m gem; update the gemfile; set local ruby version to 3.4.1 --- .ruby-version | 2 +- Gemfile | 1 + Gemfile.lock | 2 ++ gemfiles/unlocked.gemfile | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 0aec50e..47b322c 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.1.4 +3.4.1 diff --git a/Gemfile b/Gemfile index 2f84dd7..09955d7 100644 --- a/Gemfile +++ b/Gemfile @@ -9,5 +9,6 @@ group :development do gem 'appraisal' gem 'minitest' gem 'minitest-reporters' + gem 'mutex_m' gem 'rake' end diff --git a/Gemfile.lock b/Gemfile.lock index 0effebe..fc80f3b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,6 +18,7 @@ GEM builder minitest (>= 5.0) ruby-progressbar + mutex_m (0.3.0) rake (13.0.1) ruby-progressbar (1.10.1) thor (1.3.2) @@ -30,6 +31,7 @@ DEPENDENCIES attr_comparable! minitest minitest-reporters + mutex_m rake BUNDLED WITH diff --git a/gemfiles/unlocked.gemfile b/gemfiles/unlocked.gemfile index f10cb99..82ab329 100644 --- a/gemfiles/unlocked.gemfile +++ b/gemfiles/unlocked.gemfile @@ -6,6 +6,7 @@ group :development do gem "appraisal" gem "minitest" gem "minitest-reporters" + gem "mutex_m" gem "rake" end