Skip to content

Commit 01b44e5

Browse files
authored
CI: Introduce ruby_versions.yml to add supported Ruby versions automatically (#111)
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent fa5d57e commit 01b44e5

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/unit-test.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,23 @@ 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: 3.2
815
build:
16+
needs: ruby-versions
917
runs-on: ${{ matrix.os }}
1018
strategy:
1119
fail-fast: false
1220
matrix:
13-
ruby: [ '3.4', '3.3', '3.2' ]
21+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
22+
exclude:
23+
- ruby: head
1424
os: [ 'ubuntu-latest', 'macOS-latest', 'windows-latest' ]
1525
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
1626
steps:

0 commit comments

Comments
 (0)