From 585a20cc73a69fed8b07b0c4d4cf52a0f9f89bc0 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Fri, 10 Jan 2025 12:14:36 +1100 Subject: [PATCH] Fixed missing cobertura.xml in GHA artifacts and u-load paths. --- .github/workflows/test-php.yml | 6 ++++-- .github/workflows/test-scaffold.yml | 4 ++-- .github/workflows/test-shell.yml | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 63cbdeb..6ca8f3f 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -61,7 +61,9 @@ 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 @@ -69,7 +71,7 @@ jobs: 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: diff --git a/.github/workflows/test-scaffold.yml b/.github/workflows/test-scaffold.yml index b60b08a..6225c73 100644 --- a/.github/workflows/test-scaffold.yml +++ b/.github/workflows/test-scaffold.yml @@ -61,7 +61,7 @@ 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 @@ -69,7 +69,7 @@ jobs: 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: diff --git a/.github/workflows/test-shell.yml b/.github/workflows/test-shell.yml index 27bc687..758a547 100644 --- a/.github/workflows/test-shell.yml +++ b/.github/workflows/test-shell.yml @@ -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: