Skip to content

Commit 2aec2bb

Browse files
committed
Use re-using workflow
1 parent e588e18 commit 2aec2bb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@ name: ubuntu
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
ruby-versions:
7+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8+
with:
9+
engine: cruby
10+
min_version: 2.4
11+
12+
test:
13+
needs: ruby-versions
714
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
815
strategy:
916
matrix:
10-
ruby: [ 2.7, 2.6, 2.5, 2.4, head ]
17+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1118
os: [ ubuntu-latest, macos-latest ]
1219
runs-on: ${{ matrix.os }}
1320
steps:

0 commit comments

Comments
 (0)