Skip to content

Commit

Permalink
Enhance
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanm committed Mar 14, 2024
1 parent a1ee6b2 commit d6fbf62
Showing 1 changed file with 78 additions and 2 deletions.
80 changes: 78 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ jobs:
id: out
with:
matrix-step-name: php-version-and-artifact
matrix-key: ${{ matrix.php-version }}
matrix-key: ${{ strategy.job-index }}
outputs: |-
version: ${{ matrix.php-version }}
artifact: ${{ env.COVERAGE_ARTIFACT_NAME }}
data: '{"version": "${{ matrix.php-version }}", "artifact": "${{ env.COVERAGE_ARTIFACT_NAME }}"}'
debug-output:
name: DEBUG
Expand All @@ -106,7 +107,82 @@ jobs:
with:
matrix-step-name: php-version-and-artifact

- run: echo "${{ steps.fetch-data.outputs.result }}"
debug-output2:
name: DEBUG2
runs-on: ubuntu-latest
needs: [ debug-output ]
strategy:
matrix:
data: ${{ fromJson(needs.debug-output.outputs.matrix).data.* }}
steps:
- name: matrix.data
run: echo "${{ matrix.data }}"
- name: fromJson(matrix.data)
run: echo "${{ fromJson(matrix.data) }}"
- name: fromJson(matrix.data).version
run: echo "${{ fromJson(matrix.data).version }}"

debug-output2-2:
name: DEBUG2-2
runs-on: ubuntu-latest
needs: [ debug-output ]
strategy:
matrix:
version: ${{ fromJson(needs.debug-output.outputs.matrix).data.version.* }}
artifact: ${{ fromJson(needs.debug-output.outputs.matrix).data.artifact.* }}
steps:
- name: matrix.data
run: echo "${{ matrix.data }}"
- name: fromJson(matrix.data)
run: echo "${{ fromJson(matrix.data) }}"
- name: fromJson(matrix.data).version
run: echo "${{ fromJson(matrix.data).version }}"

debug-output2-3:
name: DEBUG2-3
runs-on: ubuntu-latest
needs: [ debug-output ]
strategy:
matrix: ${{ fromJson(needs.debug-output.outputs.matrix) }}
steps:
- name: matrix.data
run: echo "${{ matrix.data }}"
- name: fromJson(matrix.data)
run: echo "${{ fromJson(matrix.data) }}"
- name: fromJson(matrix.data).version
run: echo "${{ fromJson(matrix.data).version }}"

debug-output3:
name: DEBUG3
runs-on: ubuntu-latest
needs: [ debug-output ]
steps:
- name: needs.debug-output.outputs
run: echo "${{ needs.debug-output.outputs }}"
- name: toJson(needs.debug-output.outputs)
run: echo "${{ toJson(needs.debug-output.outputs) }}"
- name: needs.debug-output.outputs.matrix
run: echo "${{ needs.debug-output.outputs.matrix }}"
- name: toJson(needs.debug-output.outputs.matrix)
run: echo "${{ toJson(needs.debug-output.outputs.matrix) }}"
- name: fromJson(needs.debug-output.outputs.matrix)
run: echo "${{ fromJson(needs.debug-output.outputs.matrix) }}"
- name: fromJson(needs.debug-output.outputs.matrix).data
run: echo "${{ fromJson(needs.debug-output.outputs.matrix) }}"
- name: fromJson(needs.debug-output.outputs.matrix).data.*
run: echo "${{ fromJson(needs.debug-output.outputs.matrix).* }}"
- name: toJson(needs.debug-output.outputs.matrix.*)
run: echo "${{ toJson(needs.debug-output.outputs.matrix.*) }}"
- name: toJson(needs.debug-output.outputs.matrix).*
run: echo "${{ toJson(needs.debug-output.outputs.matrix).* }}"
- name: needs.debug-output.outputs.matrix.data
run: echo "${{ needs.debug-output.outputs.matrix.data }}"
- name: toJson(needs.debug-output.outputs.matrix).data
run: echo "${{ toJson(needs.debug-output.outputs.matrix).data }}"
- name: toJson(needs.debug-output.outputs.matrix.data.*)
run: echo "${{ toJson(needs.debug-output.outputs.matrix.data.*) }}"
- name: toJson(needs.debug-output.outputs.matrix).data.*
run: echo "${{ toJson(needs.debug-output.outputs.matrix).data.* }}"

# - uses: actions/download-artifact@v4
# with:
Expand Down

0 comments on commit d6fbf62

Please sign in to comment.