Skip to content

Commit 4f59465

Browse files
committed
Removed the duplicated strategies
1 parent d6d7e53 commit 4f59465

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,24 @@ name: Test
33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
runs-on: ${{ matrix.os }}
6+
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 "::set-output name=value::${versions}"
15+
test:
16+
needs: ruby-versions
17+
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
818
strategy:
919
matrix:
10-
ruby: [ 'head', '3.0', '2.7', '2.6', '2.5' ]
20+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1121
os: [ 'ubuntu-latest', 'windows-latest' ]
1222
include:
1323
- { os: macos-latest, ruby: '2.6' }
14-
- { os: ubuntu-latest, ruby: 'jruby-head' }
15-
- { os: ubuntu-latest, ruby: 'jruby-9.2' }
1624
steps:
1725
- uses: actions/checkout@v3
1826
- name: Set up Ruby ${{ matrix.ruby }}

0 commit comments

Comments
 (0)