Skip to content

Commit 89d76e0

Browse files
authored
CI: Introduce ruby_versions.yml to add supported Ruby versions automatically (#163)
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 2133eca commit 89d76e0

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/linux.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,23 @@ on:
44
branches: [master]
55
pull_request:
66
branches: [master]
7-
7+
schedule:
8+
- cron: '0 0 1 * *'
89
jobs:
10+
ruby-versions:
11+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12+
with:
13+
engine: cruby
14+
min_version: 2.7
915
build:
16+
needs: ruby-versions
1017
runs-on: ${{ matrix.os }}
1118
strategy:
1219
fail-fast: false
1320
matrix:
14-
ruby: [ '4.0', '3.4', '3.3', '3.2', '3.1', '3.0', '2.7' ]
21+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
22+
exclude:
23+
- ruby: head
1524
postgres: [ '16', '15', '14', '13', '12' ]
1625
os:
1726
- ubuntu-latest

0 commit comments

Comments
 (0)