mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-14 06:54:20 +02:00
Tweaks for the generated CI matrix
This commit is contained in:
@@ -15,32 +15,25 @@ permissions:
|
||||
jobs:
|
||||
test-matrix:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
outputs:
|
||||
matrix: ${{ steps.matrix.outputs.matrix }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- uses: ./
|
||||
with:
|
||||
ruby-version: ruby
|
||||
|
||||
- id: matrix
|
||||
run: echo "matrix=$(ruby generate-test-matrix.rb)" | tee -a "$GITHUB_OUTPUT"
|
||||
|
||||
- run: echo "$MATRIX" | yq -P
|
||||
env:
|
||||
MATRIX: ${{ steps.matrix.outputs.matrix }}
|
||||
|
||||
test:
|
||||
needs: [test-matrix]
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include: ${{ fromJSON(needs.test-matrix.outputs.matrix) }}
|
||||
|
||||
name: ${{ matrix.os }} ${{ matrix.ruby }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user