File tree Expand file tree Collapse file tree 4 files changed +73
-31
lines changed Expand file tree Collapse file tree 4 files changed +73
-31
lines changed Original file line number Diff line number Diff line change 23
23
TEST_GEM_DIR : ruby/testdata/example/
24
24
25
25
jobs :
26
+ generate-matrix :
27
+ runs-on : ubuntu-latest
28
+
29
+ outputs :
30
+ matrix : ${{ steps.set-matrix.outputs.matrix }}
31
+
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+
35
+ - id : set-matrix
36
+ run : echo "matrix=$(cat matrix.json | jq -c)" >> $GITHUB_OUTPUT
37
+ working-directory : .github/workflows/
38
+
26
39
test :
27
- name : " test (Go ${{ matrix.golang }}, Ruby ${{ matrix.ruby }})"
40
+ name : " test (Go ${{ matrix.go }}, Ruby ${{ matrix.ruby }})"
41
+
42
+ needs :
43
+ - generate-matrix
28
44
29
45
runs-on : ubuntu-latest
30
46
31
47
strategy :
32
48
fail-fast : false
33
49
34
- matrix :
35
- golang :
36
- # TODO: Enable after repo is published
37
- # - "1.22"
38
- - " 1.23"
39
- ruby :
40
- - " 3.3"
50
+ matrix : ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
41
51
42
52
steps :
43
53
- uses : actions/checkout@v4
44
54
45
55
- uses : actions/setup-go@v5
46
56
with :
47
- go-version : ${{ matrix.golang }}
57
+ go-version : ${{ matrix.go }}
48
58
49
59
- uses : ruby/setup-ruby@v1
50
60
with :
@@ -89,14 +99,16 @@ jobs:
89
99
go-lint :
90
100
name : " go-lint (Ruby ${{ matrix.ruby }})"
91
101
102
+ needs :
103
+ - generate-matrix
104
+
92
105
runs-on : ubuntu-latest
93
106
94
107
strategy :
95
108
fail-fast : false
96
109
97
110
matrix :
98
- ruby :
99
- - " 3.3"
111
+ ruby : ${{ fromJSON(needs.generate-matrix.outputs.matrix).ruby }}
100
112
101
113
steps :
102
114
- uses : actions/checkout@v4
@@ -184,14 +196,16 @@ jobs:
184
196
go_gem :
185
197
name : " go_gem (Ruby ${{ matrix.ruby }})"
186
198
199
+ needs :
200
+ - generate-matrix
201
+
187
202
runs-on : ubuntu-latest
188
203
189
204
strategy :
190
205
fail-fast : false
191
206
192
207
matrix :
193
- ruby :
194
- - " 3.3"
208
+ ruby : ${{ fromJSON(needs.generate-matrix.outputs.matrix).ruby }}
195
209
196
210
steps :
197
211
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ {
2
+ "go" : [
3
+ " 1.23"
4
+ ],
5
+ "ruby" : [
6
+ " 3.3"
7
+ ]
8
+ }
Original file line number Diff line number Diff line change @@ -20,28 +20,38 @@ defaults:
20
20
working-directory : _tools/patch_for_go_gem/
21
21
22
22
jobs :
23
+ generate-matrix :
24
+ runs-on : ubuntu-latest
25
+
26
+ outputs :
27
+ matrix : ${{ steps.set-matrix.outputs.matrix }}
28
+
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+
32
+ - id : set-matrix
33
+ run : echo "matrix=$(cat matrix.json | jq -c)" >> $GITHUB_OUTPUT
34
+ working-directory : .github/workflows/
35
+
23
36
test :
24
- name : " test (Go ${{ matrix.golang }}, Ruby ${{ matrix.ruby }})"
37
+ name : " test (Go ${{ matrix.go }}, Ruby ${{ matrix.ruby }})"
38
+
39
+ needs :
40
+ - generate-matrix
25
41
26
42
runs-on : ubuntu-latest
27
43
28
44
strategy :
29
45
fail-fast : false
30
46
31
- matrix :
32
- golang :
33
- # TODO: Enable after repo is published
34
- # - "1.22"
35
- - " 1.23"
36
- ruby :
37
- - " 3.3"
47
+ matrix : ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
38
48
39
49
steps :
40
50
- uses : actions/checkout@v4
41
51
42
52
- uses : actions/setup-go@v5
43
53
with :
44
- go-version : ${{ matrix.golang }}
54
+ go-version : ${{ matrix.go }}
45
55
46
56
- uses : ruby/setup-ruby@v1
47
57
with :
Original file line number Diff line number Diff line change @@ -20,28 +20,38 @@ defaults:
20
20
working-directory : _tools/ruby_h_to_go/
21
21
22
22
jobs :
23
+ generate-matrix :
24
+ runs-on : ubuntu-latest
25
+
26
+ outputs :
27
+ matrix : ${{ steps.set-matrix.outputs.matrix }}
28
+
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+
32
+ - id : set-matrix
33
+ run : echo "matrix=$(cat matrix.json | jq -c)" >> $GITHUB_OUTPUT
34
+ working-directory : .github/workflows/
35
+
23
36
test :
24
- name : " test (Go ${{ matrix.golang }}, Ruby ${{ matrix.ruby }})"
37
+ name : " test (Go ${{ matrix.go }}, Ruby ${{ matrix.ruby }})"
38
+
39
+ needs :
40
+ - generate-matrix
25
41
26
42
runs-on : ubuntu-latest
27
43
28
44
strategy :
29
45
fail-fast : false
30
46
31
- matrix :
32
- golang :
33
- # TODO: Enable after repo is published
34
- # - "1.22"
35
- - " 1.23"
36
- ruby :
37
- - " 3.3"
47
+ matrix : ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
38
48
39
49
steps :
40
50
- uses : actions/checkout@v4
41
51
42
52
- uses : actions/setup-go@v5
43
53
with :
44
- go-version : ${{ matrix.golang }}
54
+ go-version : ${{ matrix.go }}
45
55
46
56
- uses : ruby/setup-ruby@v1
47
57
with :
You can’t perform that action at this time.
0 commit comments