Skip to content

Commit a60ce15

Browse files
authored
Merge pull request #97 from fluent/ruby_versions.yml
CI: Introduce ruby_versions.yml to add supported Ruby versions automatically
2 parents 1e902bb + 4a0cf69 commit a60ce15

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/test.yml

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

1626
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
1727
steps:

0 commit comments

Comments
 (0)