diff options
| author | Asko Nõmm <asko@nth.ee> | 2024-11-10 22:37:57 +0200 |
|---|---|---|
| committer | Asko Nõmm <asko@nth.ee> | 2024-11-10 22:37:57 +0200 |
| commit | 5609a2d01aaa1b58eb9a30c4b028bb37fa933c95 (patch) | |
| tree | e5bf64abd8978808e4455d71a8e0b3b8c1f9fc91 /.github/workflows/coverage.yml | |
| parent | d5a69e5d8adb949e95ede09d16f00400b58d047d (diff) | |
Add coverage workflow
Diffstat (limited to '.github/workflows/coverage.yml')
| -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 |
