Skip to content

Commit 4f7af0a

Browse files
authored
Use reusing workflow (#289)
This is alternative approach for #288
1 parent af64a15 commit 4f7af0a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ on:
55
- pull_request
66

77
jobs:
8+
ruby-versions:
9+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
10+
with:
11+
engine: cruby
12+
min_version: 2.5
13+
versions: '["debug"]'
14+
815
in-place:
16+
needs: ruby-versions
917
name: "In-place test: Ruby ${{ matrix.ruby-version }}: ${{ matrix.runs-on }}"
1018
strategy:
1119
fail-fast: false
1220
matrix:
13-
ruby-version:
14-
- "3.1"
15-
- "3.0"
16-
- "2.7"
17-
- "2.6"
18-
- "2.5"
19-
- debug
21+
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
2022
runs-on:
2123
- macos-latest
2224
- ubuntu-latest

0 commit comments

Comments
 (0)