Skip to content

Commit 79d8bb9

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 431695e commit 79d8bb9

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/linux.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,29 @@ 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: [ '4.0', '3.4', '3.3', '3.2', '3.1', '3.0', '2.7' ]
22+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1523
mongodb-version: ['5.0', '4.4', '4.2']
1624
os:
1725
- ubuntu-latest
1826
experimental: [false]
1927
include:
2028
- ruby: head
21-
os: ubuntu-latest
2229
experimental: true
23-
mongodb-version: '4.0'
24-
- ruby: head
25-
os: ubuntu-latest
26-
experimental: true
27-
mongodb-version: '4.2'
28-
- ruby: head
29-
os: ubuntu-latest
30-
experimental: true
31-
mongodb-version: '4.4'
3230

3331
name: Ruby ${{ matrix.ruby }} and MongoDB ${{ matrix.mongodb-version }} on ${{ matrix.os }}
3432
steps:

0 commit comments

Comments
 (0)