Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanm committed Mar 14, 2024
1 parent 32e99a2 commit d6bc4a2
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
env:
COVERAGE_TYPE: none
COVERAGE_ARTIFACT_NAME: coverage-php${{ matrix.php-version }}
outputs:
"php${{ matrix.php-version }}": ${{ steps.output-data.outputs.data }}
strategy:
fail-fast: true
max-parallel: 4
Expand Down Expand Up @@ -84,22 +82,29 @@ jobs:
path: "build/coverage-*"
if-no-files-found: error

- name: Prepare output
id: output-data
run: |
echo 'data={ "matrix": {"php-version": "${{ matrix.php-version }}", "artifact": "${{ env.COVERAGE_ARTIFACT_NAME }}"}}' >> $GITHUB_OUTPUT
- name: Upload matrix output
uses: cloudposse/github-action-matrix-outputs-write@v1
id: out
with:
matrix-step-name: ${{ github.job }}
matrix-key: ${{ matrix.php-version }}
outputs: ${{ env.COVERAGE_ARTIFACT_NAME }}

debug-output:
name: DEBUG
runs-on: ubuntu-latest
needs: [ tests ]
steps:
- run: echo "${{ toJson(needs.tests.outputs.*.matrix) }}"
- uses: actions/download-artifact@v4
- uses: cloudposse/github-action-matrix-outputs-read@v1
id: fetch-data
with:
pattern: coverage-php*
path: coverage-data
- run: ls -ail coverage-data
matrix-step-name: build
- run: echo "${{ steps.fetch-data.outputs.result }}"
# - uses: actions/download-artifact@v4
# with:
# pattern: coverage-php*
# path: coverage-data
# - run: ls -ail coverage-data

# codecov-coverage-report:
# name: Codecov coverage report
Expand Down

0 comments on commit d6bc4a2

Please sign in to comment.