Skip to content

Commit

Permalink
Fixed missing cobertura.xml in GHA artifacts and u-load paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 10, 2025
1 parent 8bebe15 commit 585a20c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,17 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{github.job}}-code-coverage-report-${{ matrix.php-versions }}
path: ./.coverage-html
path: |
.coverage-html
cobertura.xml
include-hidden-files: true
if-no-files-found: error

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v5
if: ${{ env.CODECOV_TOKEN != '' }}
with:
files: ./cobertura.xml
files: cobertura.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-scaffold.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{github.job}}-code-coverage-report
path: ./.scaffold-coverage-html
path: .scaffold-coverage-html
include-hidden-files: true
if-no-files-found: error

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v5
if: ${{ env.CODECOV_TOKEN != '' }}
with:
directory: ./.scaffold-coverage-html
directory: .scaffold-coverage-html
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ jobs:
with:
name: ${{github.job}}-code-coverage-report
include-hidden-files: true
path: ./.coverage-html
path: .coverage-html
if-no-files-found: error

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v5
if: ${{ env.CODECOV_TOKEN != '' && matrix.os == 'ubuntu-latest' }}
with:
directory: ./.coverage-html
directory: .coverage-html
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
env:
Expand Down

0 comments on commit 585a20c

Please sign in to comment.