Skip to content

Commit

Permalink
Send COverage-data to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
heiglandreas committed Aug 1, 2024
1 parent 36a1b3b commit c1a9b36
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,31 @@ jobs:
php-version: ${{ matrix.php-versions }}
- name: install dependencies
run: composer install
- name: install tools
run: composer require --dev phpunit/phpunit
- name: Run Unit-Tests
run: ./vendor/bin/phpunit --testdox --coverage-text

coverage:
needs: test
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
continue-on-error: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: install Ghostscript
run: sudo apt-get install -y ghostscript
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
coverage: xdebug
- name: install dependencies
run: composer install
- name: install tools
run: composer install
- name: run testsuite
run: ./vendor/bin/phpunit --testdox --colors=always --coverage-clover clover.xml
- name: upload to codecov
uses: codecov/codecov-action@v1
with:
files: ./clover.xml

0 comments on commit c1a9b36

Please sign in to comment.