Skip to content

Commit 29a66cf

Browse files
authored
CI: Introduce ruby_versions.yml to add supported Ruby versions automatically (#124)
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 67c8065 commit 29a66cf

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/unit-test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,24 @@ on:
44
branches: [master]
55
pull_request:
66
branches: [master]
7+
schedule:
8+
- cron: '0 0 1 * *'
79
jobs:
10+
ruby-versions:
11+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12+
with:
13+
engine: cruby
14+
min_version: 2.7
815
test:
16+
needs: ruby-versions
917
runs-on: ${{ matrix.os }}
10-
continue-on-error: ${{ matrix.experimental }}
18+
continue-on-error: ${{ matrix.ruby == 'head' }}
1119
strategy:
1220
fail-fast: false
1321
matrix:
14-
ruby: [ '3.4', '3.3', '3.2', '3.1', '3.0', '2.7' ]
22+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1523
os:
1624
- windows-latest
17-
experimental: [false]
18-
include:
19-
- ruby: 'head'
20-
os: windows-latest
21-
experimental: true
2225
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
2326
steps:
2427
- uses: actions/checkout@v6
@@ -29,7 +32,6 @@ jobs:
2932
run: |
3033
ruby --version
3134
gem --version
32-
gem install bundler rake
3335
ridk exec bundle install --jobs 4 --retry 3
3436
- name: Unit Test
3537
run: |

0 commit comments

Comments
 (0)