Skip to content

Commit 08a6cbd

Browse files
authored
Merge pull request #13 from ruby/replace-reusing-actions
Replace reusing actions
2 parents 11288fc + c3baacc commit 08a6cbd

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,19 @@ on: [push, pull_request]
44

55
jobs:
66
ruby-versions:
7-
runs-on: ubuntu-latest
8-
outputs:
9-
versions: ${{ steps.versions.outputs.value }}
10-
steps:
11-
- id: versions
12-
run: |
13-
versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/all.json' | jq -c '. + ["2.5"]')
14-
echo "value=${versions}" >> $GITHUB_OUTPUT
7+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8+
with:
9+
min_version: 2.5
1510
test:
1611
needs: ruby-versions
1712
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
1813
strategy:
1914
matrix:
2015
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
21-
os: [ ubuntu-latest, macos-latest ]
16+
os: [ ubuntu-latest, macos-latest, windows-latest ]
17+
exclude:
18+
- { os: windows-latest, ruby: truffleruby-head }
19+
- { os: windows-latest, ruby: truffleruby }
2220
runs-on: ${{ matrix.os }}
2321
steps:
2422
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)