Merge pull request #162 from hinnerk-a/patch-1 #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage Report | |
on: | |
push: | |
branches: [ development ] | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
coverage: xdebug | |
- name: Install dependencies | |
run: | | |
composer install --prefer-dist | |
- name: Execute tests with coverage | |
run: vendor/bin/phpunit --configuration 'phpunit.xml' --coverage-cobertura=coverage-cobertura.xml | |
- name: Make Coverage Badge | |
uses: action-badges/[email protected] | |
with: | |
file-name: coverage.svg | |
badge-branch: badges | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
coverage-file-name: ./coverage-cobertura.xml |