Skip to content

Commit e06d4fe

Browse files
authored
Merge pull request #18 from fluent-plugins-nursery/ruby_versions.yml
CI: Introduce ruby_versions.yml to add supported Ruby versions automatically
2 parents e4c4a40 + f945759 commit e06d4fe

File tree

3 files changed

+45
-9
lines changed

3 files changed

+45
-9
lines changed

.github/workflows/linux.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
name: Testing on Ubuntu
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
schedule:
8+
- cron: '0 0 1 * *'
59
jobs:
10+
ruby-versions:
11+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12+
with:
13+
engine: cruby
14+
min_version: 2.7
615
build:
16+
needs: ruby-versions
717
runs-on: ${{ matrix.os }}
818
strategy:
919
fail-fast: false
1020
matrix:
11-
ruby: [ '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0' ]
21+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
22+
exclude:
23+
- ruby: head
1224
os:
1325
- ubuntu-latest
1426
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}

.github/workflows/macos.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
name: Testing on macOS
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
schedule:
8+
- cron: '0 0 1 * *'
59
jobs:
10+
ruby-versions:
11+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12+
with:
13+
engine: cruby
14+
min_version: 2.7
615
build:
16+
needs: ruby-versions
717
runs-on: ${{ matrix.os }}
818
strategy:
919
fail-fast: false
1020
matrix:
11-
ruby: [ '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0' ]
21+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
22+
exclude:
23+
- ruby: head
1224
os:
1325
- macOS-latest
1426
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}

.github/workflows/windows.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
name: Testing on Windows
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
schedule:
8+
- cron: '0 0 1 * *'
59
jobs:
10+
ruby-versions:
11+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12+
with:
13+
engine: cruby
14+
min_version: 2.7
615
build:
16+
needs: ruby-versions
717
runs-on: ${{ matrix.os }}
818
strategy:
919
fail-fast: false
1020
matrix:
11-
ruby: [ '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0' ]
21+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
22+
exclude:
23+
- ruby: head
1224
os:
1325
- windows-latest
1426
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}

0 commit comments

Comments
 (0)