Skip to content

Commit d10be75

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

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/linux.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: 2.7
815
build:
16+
needs: ruby-versions
917
runs-on: ${{ matrix.os }}
1018
continue-on-error: ${{ matrix.experimental }}
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) }}
23+
exclude:
24+
- ruby: head
1525
os:
1626
- ubuntu-latest
1727
experimental: [false]

0 commit comments

Comments
 (0)