From 89e9bca74c862663c2377f20e91a333c38060f4d Mon Sep 17 00:00:00 2001 From: Louise McMahon Date: Tue, 4 Feb 2025 17:37:39 +0000 Subject: [PATCH] Add xdebug for coverage --- .github/workflows/run-tests.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5f9aa13..25d8a2e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -3,10 +3,10 @@ name: Run Tests on: push: branches: - - main + - main pull_request: branches: - - main + - main jobs: run-tests: @@ -35,6 +35,7 @@ jobs: with: php-version: '8.4' extensions: zip, pcntl, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, imagick, redis + coverage: xdebug - name: Run composer install run: composer install -n --prefer-dist @@ -55,7 +56,7 @@ jobs: - run: npm run build --if-present - name: Execute tests - run : | + run: | php artisan test --env=ci --coverage-clover=coverage/all/cobertura.xml - name: Upload application @@ -127,7 +128,7 @@ jobs: cleanup-artifacts-pr: runs-on: ubuntu-latest if: github.event.pull_request.number != null - needs: [run-tests, check-coverage, comment-coverage] + needs: [ run-tests, check-coverage, comment-coverage ] steps: - uses: geekyeggo/delete-artifact@v5 with: @@ -139,7 +140,7 @@ jobs: cleanup-artifacts-branch: runs-on: ubuntu-latest if: github.event.pull_request.number == null - needs: [run-tests, check-coverage] + needs: [ run-tests, check-coverage ] steps: - uses: geekyeggo/delete-artifact@v5 with: