Skip to content

Commit 5dd816a

Browse files
committed
Tweaks for the generated CI matrix
1 parent c2f29a7 commit 5dd816a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,25 @@ permissions:
1515
jobs:
1616
test-matrix:
1717
runs-on: ubuntu-latest
18-
1918
outputs:
2019
matrix: ${{ steps.matrix.outputs.matrix }}
21-
2220
steps:
2321
- uses: actions/checkout@v6
24-
2522
- uses: ./
2623
with:
2724
ruby-version: ruby
28-
2925
- id: matrix
3026
run: echo "matrix=$(ruby generate-test-matrix.rb)" | tee -a "$GITHUB_OUTPUT"
31-
3227
- run: echo "$MATRIX" | yq -P
3328
env:
3429
MATRIX: ${{ steps.matrix.outputs.matrix }}
3530

3631
test:
3732
needs: [test-matrix]
38-
3933
strategy:
4034
fail-fast: false
4135
matrix:
4236
include: ${{ fromJSON(needs.test-matrix.outputs.matrix) }}
43-
4437
name: ${{ matrix.os }} ${{ matrix.ruby }}
4538
runs-on: ${{ matrix.os }}
4639
steps:

generate-test-matrix.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ def unique_versions(versions, segment_count, *symbolic)
7474
# RubyInstaller windows-arm64 builds only exist for Ruby 3.4+
7575
matrix -= windows_arm64_runners.product(%w[2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3])
7676

77-
puts(JSON.generate(matrix.sort.collect { |os, ruby| { os: os, ruby: ruby } }))
77+
puts(JSON.generate(matrix.sort.map { |os, ruby| { os:, ruby: } }))

0 commit comments

Comments
 (0)