Skip to content

Commit 300f83b

Browse files
committed
Test against ruby verions 3.2 and 3.3
1 parent f4ca5a2 commit 300f83b

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ jobs:
2525
lint:
2626
runs-on: ubuntu-20.04
2727
if: ${{ github.event_name == 'pull_request' }}
28+
strategy:
29+
matrix:
30+
ruby-version: ['3.2', '3.3']
2831
steps:
2932
- uses: actions/checkout@v4
3033
with:
3134
fetch-depth: 0
3235
- uses: ruby/setup-ruby@v1
3336
with:
34-
ruby-version: "3.2"
37+
ruby-version: ${{ matrix.ruby }}
3538
bundler-cache: true
3639
- run: ./bin/setup
3740
- run: bundle exec rake check:type
@@ -73,11 +76,14 @@ jobs:
7376
runs-on: ubuntu-20.04
7477
outputs:
7578
entries: ${{ steps.set-matrix.outputs.entries }}
79+
strategy:
80+
matrix:
81+
ruby-version: ['3.2', '3.3']
7682
steps:
7783
- uses: actions/checkout@v4
7884
- uses: ruby/setup-ruby@v1
7985
with:
80-
ruby-version: "3.2"
86+
ruby-version: ${{ matrix.ruby-version}}
8187
bundler-cache: true
8288
- run: ./bin/setup
8389
- run: rake ci:pin_build_manifest
@@ -98,7 +104,7 @@ jobs:
98104
fail-fast: false
99105
matrix:
100106
entry: ${{ fromJson(needs.build-rake-task-matrix.outputs.entries) }}
101-
107+
ruby-version: ['3.2', '3.3']
102108
needs: [build-rake-task-matrix]
103109
runs-on: ubuntu-20.04
104110
steps:
@@ -144,7 +150,7 @@ jobs:
144150
- uses: ruby/setup-ruby@v1
145151
if: ${{ matrix.entry.test != '' }}
146152
with:
147-
ruby-version: "3.2"
153+
ruby-version: ${{ matrix.ruby-version }}
148154
bundler-cache: false
149155
- name: rake ${{ matrix.entry.test }}
150156
run: |
@@ -161,6 +167,9 @@ jobs:
161167
needs: [rake-tasks]
162168
runs-on: ubuntu-20.04
163169
if: ${{ startsWith(github.ref, 'refs/tags/') || inputs.publish }}
170+
strategy:
171+
matrix:
172+
ruby-version: ['3.2', '3.3']
164173
steps:
165174
- uses: actions/checkout@v4
166175
- uses: actions/download-artifact@v4
@@ -175,7 +184,7 @@ jobs:
175184
registry-url: https://registry.npmjs.org/
176185
- uses: ruby/setup-ruby@v1
177186
with:
178-
ruby-version: "3.2"
187+
ruby-version: ${{ matrix.ruby-version }}
179188
bundler-cache: true
180189
- run: ./bin/setup
181190
- run: echo "PREREL_NAME=${{ inputs.prerel_name }}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)