Skip to content

Commit

Permalink
Add xdebug for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
LouiseMcMahon committed Feb 4, 2025
1 parent ffe7070 commit 89e9bca
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Run Tests
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
run-tests:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 89e9bca

Please sign in to comment.