Skip to content

Commit

Permalink
Revert "Add debugging"
Browse files Browse the repository at this point in the history
This reverts commit 780f2cc.
  • Loading branch information
caendesilva committed Aug 2, 2024
1 parent 6eed65f commit 7f92581
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/coverage-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# Start unit tests in the background
(
cd unit_tests
vendor/bin/pest --colors=always --coverage-php=../coverage/unit.cov --log-junit=../coverage/unit.xml --testsuite=UnitFramework 2>&1 | sed -E $'s/^/\x1b[36m[UNIT]\x1b[0m /' &
vendor/bin/pest --colors=always --coverage-php=../coverage/unit.cov --log-junit=../coverage/unit.xml --testsuite=UnitFramework 2>&1 | sed -E $'s/^/\x1b[36m[UNIT] \x1b[0m /' &
) &
# Start feature tests in the background
Expand All @@ -60,23 +60,13 @@ jobs:
# Wait for both background processes to finish
wait
- name: Debug - List coverage directory
run: |
ls -la coverage
echo "Current working directory: $(pwd)"
- name: Download phpcov
run: wget https://phar.phpunit.de/phpcov.phar

- name: Merge coverage reports
run: |
php phpcov.phar merge --clover=coverage.xml coverage || echo "phpcov merge failed"
[ -f coverage.xml ] && cp coverage.xml coverage/ || echo "coverage.xml not created"
- name: Debug - Check merged coverage
run: |
[ -f coverage.xml ] && echo "coverage.xml exists" || echo "coverage.xml does not exist"
[ -f coverage/coverage.xml ] && echo "coverage/coverage.xml exists" || echo "coverage/coverage.xml does not exist"
php phpcov.phar merge --clover=coverage.xml coverage
cp coverage.xml coverage/
- name: Download JUnit merger script
run: |
Expand All @@ -85,11 +75,7 @@ jobs:
- name: Merge JUnit XML reports
run: |
python merge_junit_results.py coverage/unit.xml coverage/feature.xml > report.xml || echo "JUnit merge failed"
- name: Debug - Check merged JUnit report
run: |
[ -f report.xml ] && echo "report.xml exists" || echo "report.xml does not exist"
python merge_junit_results.py coverage/unit.xml coverage/feature.xml > report.xml
- name: "Publish coverage report to Codecov"
uses: codecov/codecov-action@v4
Expand All @@ -100,4 +86,4 @@ jobs:
- name: Ping statistics server with test results
run: |
curl https://raw.githubusercontent.com/hydephp/develop/6e9d17f31879f4ccda13a3fec4029c9663bccec0/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
php ping.php "Monorepo Coverage Tests" ${{ secrets.OPENANALYTICS_TOKEN }} ${{ github.ref_name }}
php ping.php "Monorepo Coverage Tests" ${{ secrets.OPENANALYTICS_TOKEN }} ${{ github.ref_name }}

0 comments on commit 7f92581

Please sign in to comment.