@@ -89,10 +89,11 @@ jobs:
8989 id : out
9090 with :
9191 matrix-step-name : php-version-and-artifact
92- matrix-key : ${{ matrix.php-version }}
92+ matrix-key : ${{ strategy.job-index }}
9393 outputs : |-
9494 version: ${{ matrix.php-version }}
9595 artifact: ${{ env.COVERAGE_ARTIFACT_NAME }}
96+ data: '{"version": "${{ matrix.php-version }}", "artifact": "${{ env.COVERAGE_ARTIFACT_NAME }}"}'
9697
9798 debug-output :
9899 name : DEBUG
@@ -106,7 +107,109 @@ jobs:
106107 with :
107108 matrix-step-name : php-version-and-artifact
108109
109- - run : echo "${{ steps.fetch-data.outputs.result }}"
110+ debug-output2 :
111+ name : DEBUG2
112+ runs-on : ubuntu-latest
113+ needs : [ debug-output ]
114+ strategy :
115+ matrix :
116+ data : ${{ fromJson(needs.debug-output.outputs.matrix).data.* }}
117+ steps :
118+ - name : matrix.data
119+ run : echo "${{ matrix.data }}"
120+ - name : fromJson(matrix.data)
121+ run : echo "${{ fromJson(matrix.data) }}"
122+ - name : fromJson(matrix.data).version
123+ run : echo "${{ fromJson(matrix.data).version }}"
124+
125+ debug-output2-2 :
126+ name : DEBUG2-2
127+ runs-on : ubuntu-latest
128+ needs : [ debug-output ]
129+ strategy :
130+ matrix :
131+ version : ${{ fromJson(needs.debug-output.outputs.matrix).version.* }}
132+ artifact : ${{ fromJson(needs.debug-output.outputs.matrix).artifact.* }}
133+ steps :
134+ - name : matrix.data
135+ run : echo "${{ matrix }}"
136+ - name : toJson(matrix)
137+ run : echo "${{ toJson(matrix) }}"
138+ - name : Full
139+ run : echo "version=${{ matrix.version }} / artifact=${{ matrix.artifact }}"
140+
141+ debug-output2-3 :
142+ name : DEBUG2-3
143+ runs-on : ubuntu-latest
144+ needs : [ debug-output ]
145+ strategy :
146+ matrix : ${{ fromJson(needs.debug-output.outputs.matrix) }}
147+ steps :
148+ - name : matrix.data
149+ run : echo "${{ matrix }}"
150+ - name : toJson(matrix)
151+ run : echo "${{ toJson(matrix) }}"
152+ - name : Full
153+ run : echo "version=${{ matrix.version }} / artifact=${{ matrix.artifact }} / data=${{ matrix.data }}"
154+
155+ debug-output2-4 :
156+ name : DEBUG2-4
157+ runs-on : ubuntu-latest
158+ needs : [ debug-output ]
159+ strategy :
160+ matrix :
161+ include : ${{ fromJson(needs.debug-output.outputs.matrix).data }}
162+ steps :
163+ - name : matrix.data
164+ run : echo "${{ matrix }}"
165+ - name : toJson(matrix)
166+ run : echo "${{ toJson(matrix) }}"
167+
168+ debug-output2-3-2 :
169+ name : DEBUG2-3-2
170+ runs-on : ubuntu-latest
171+ needs : [ debug-output ]
172+ strategy :
173+ matrix : ${{ needs.debug-output.outputs.matrix }}
174+ steps :
175+ - name : matrix.data
176+ run : echo "${{ matrix }}"
177+ - name : toJson(matrix)
178+ run : echo "${{ toJson(matrix) }}"
179+ - name : Full
180+ run : echo "version=${{ matrix.version }} / artifact=${{ matrix.artifact }} / data=${{ matrix.data }}"
181+
182+ debug-output4 :
183+ name : DEBUG4
184+ runs-on : ubuntu-latest
185+ needs : [ debug-output ]
186+ steps :
187+ - name : needs.debug-output.outputs
188+ run : echo "${{ needs.debug-output.outputs }}"
189+ - name : toJson(needs.debug-output.outputs)
190+ run : echo "${{ toJson(needs.debug-output.outputs) }}"
191+ - name : needs.debug-output.outputs.matrix
192+ run : echo "${{ needs.debug-output.outputs.matrix }}"
193+ - name : toJson(needs.debug-output.outputs.matrix)
194+ run : echo "${{ toJson(needs.debug-output.outputs.matrix) }}"
195+ - name : fromJson(needs.debug-output.outputs.matrix)
196+ run : echo "${{ fromJson(needs.debug-output.outputs.matrix) }}"
197+ - name : fromJson(needs.debug-output.outputs.matrix).data
198+ run : echo "${{ fromJson(needs.debug-output.outputs.matrix) }}"
199+ - name : fromJson(needs.debug-output.outputs.matrix).data.*
200+ run : echo "${{ fromJson(needs.debug-output.outputs.matrix).* }}"
201+ - name : toJson(needs.debug-output.outputs.matrix.*)
202+ run : echo "${{ toJson(needs.debug-output.outputs.matrix.*) }}"
203+ - name : toJson(needs.debug-output.outputs.matrix).*
204+ run : echo "${{ toJson(needs.debug-output.outputs.matrix).* }}"
205+ - name : needs.debug-output.outputs.matrix.data
206+ run : echo "${{ needs.debug-output.outputs.matrix.data }}"
207+ - name : toJson(needs.debug-output.outputs.matrix).data
208+ run : echo "${{ toJson(needs.debug-output.outputs.matrix).data }}"
209+ - name : toJson(needs.debug-output.outputs.matrix.data.*)
210+ run : echo "${{ toJson(needs.debug-output.outputs.matrix.data.*) }}"
211+ - name : toJson(needs.debug-output.outputs.matrix).data.*
212+ run : echo "${{ toJson(needs.debug-output.outputs.matrix).data.* }}"
110213
111214# - uses: actions/download-artifact@v4
112215# with:
0 commit comments