diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/coverage.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..a9633a8 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,27 @@ +on: push +name: Coverage +jobs: + coverage: + name: Coverage + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up php 8.3 + uses: shivammathur/setup-php@v2 + with: + php-version: "8.3" + coverage: xdebug + + - name: Set-up Composer + uses: php-actions/composer@v6 + + - name: Run tests and collect coverage + run: ./vendor/bin/phpunit tests --coverage-clover coverage.xml . + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
\ No newline at end of file |
