Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rela589n committed Nov 18, 2023
1 parent 05b6941 commit c9dab16
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/ci.yaml
Expand Up @@ -67,8 +67,6 @@ jobs:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'Install Dependencies'
uses: "ramsey/composer-install@v2"
Expand All @@ -78,3 +76,26 @@ jobs:

- name: 'Run PHPUnit'
run: vendor/bin/phpunit --testdox --colors=always --configuration=phpunit.xml.dist

code-coverage:
needs: test
name: PHPUnit Coverage
runs-on: ubuntu-latest
steps:
- name: 'Checkout Code'
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: xdebug
tools: composer:v2

- name: 'Install Dependencies'
uses: "ramsey/composer-install@v2"
with:
composer-options: "--optimize-autoloader"

- name: 'Run PHPUnit with Coverage'
run: vendor/bin/phpunit --configuration=phpunit.xml.dist --coverage-clover=coverage.xml

0 comments on commit c9dab16

Please sign in to comment.