Skip to content

Commit 7ccc0af

Browse files
committed
CI: Introduce ruby_versions.yml to add supported Ruby versions automatically
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 3538f1a commit 7ccc0af

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/linux.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,23 @@ on:
44
branches:
55
- master
66
pull_request:
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.2', '3.3', '3.4' ]
21+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
22+
exclude:
23+
- ruby: head
1424
os:
1525
- ubuntu-latest
1626
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}

0 commit comments

Comments
 (0)