Skip to content

Commit 2cd62dc

Browse files
committed
add Ruby 3.4 to the test matrix for real this time
1 parent 93a11a5 commit 2cd62dc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test.yml

+27
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
engine:
17+
- name: ruby
18+
version: '3.4'
19+
alias: ruby-34
1720
- name: ruby
1821
version: '3.3'
1922
alias: ruby-33
@@ -32,6 +35,7 @@ jobs:
3235
container:
3336
image: ghcr.io/datadog/images-rb/engines/${{ matrix.engine.name }}:${{ matrix.engine.version }}
3437
outputs:
38+
ruby-34-matrix: "${{ steps.set-matrix.outputs.ruby-34 }}"
3539
ruby-33-matrix: "${{ steps.set-matrix.outputs.ruby-33 }}"
3640
ruby-32-matrix: "${{ steps.set-matrix.outputs.ruby-32 }}"
3741
ruby-31-matrix: "${{ steps.set-matrix.outputs.ruby-31 }}"
@@ -55,6 +59,29 @@ jobs:
5559
path: 'Gemfile.lock
5660
5761
'
62+
test-ruby-34:
63+
name: 'ruby-3.4: ${{ matrix.task }} (${{ matrix.group }})'
64+
needs:
65+
- compute_tasks
66+
runs-on: ubuntu-22.04
67+
strategy:
68+
fail-fast: false
69+
matrix:
70+
include: "${{ fromJSON(needs.compute_tasks.outputs.ruby-34-matrix) }}"
71+
container:
72+
image: ghcr.io/datadog/images-rb/engines/ruby:3.4
73+
env:
74+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
75+
steps:
76+
- uses: actions/checkout@v4
77+
- name: Configure Git
78+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
79+
- uses: actions/download-artifact@v4
80+
with:
81+
name: bundled-lock-${{ github.run_id }}-ruby-34
82+
- run: bundle install && bundle exec rake compile_ext
83+
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
84+
run: bundle exec rake spec:${{ matrix.task }}
5885
test-ruby-33:
5986
name: 'ruby-3.3: ${{ matrix.task }} (${{ matrix.group }})'
6087
needs:

0 commit comments

Comments
 (0)