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 f3a13cb
Showing 1 changed file with 105 additions and 2 deletions.
107 changes: 105 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,109 @@ 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).version.* }}
artifact: ${{ fromJson(needs.debug-output.outputs.matrix).artifact.* }}
steps:
- name: matrix.data
run: echo "${{ matrix }}"
- name: toJson(matrix)
run: echo "${{ toJson(matrix) }}"
- name: Full
run: echo "version=${{ matrix.version }} / artifact=${{ matrix.artifact }}"

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 }}"
- name: toJson(matrix)
run: echo "${{ toJson(matrix) }}"
- name: Full
run: echo "version=${{ matrix.version }} / artifact=${{ matrix.artifact }} / data=${{ matrix.data }}"

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

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

debug-output4:
name: DEBUG4
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 f3a13cb

Please sign in to comment.