We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57ca65e commit 50c257fCopy full SHA for 50c257f
1 file changed
.github/workflows/pr.yaml
@@ -31,11 +31,18 @@ jobs:
31
- name: Create docker network
32
run: docker network create frontend
33
34
- - name: Run tests
+ - name: Run tests with coverage
35
run: |
36
- docker compose up --detach
37
- docker compose exec phpfpm composer install --no-interaction
38
- docker compose exec phpfpm composer run tests
+ docker compose run --rm -e XDEBUG_MODE=coverage phpfpm composer install --no-interaction
+ docker compose run --rm -e XDEBUG_MODE=coverage phpfpm vendor/bin/phpunit --coverage-clover=coverage/unit.xml
+
39
+ - name: Upload coverage to Codecov
40
+ uses: codecov/codecov-action@v5
41
+ with:
42
+ token: ${{ secrets.CODECOV_TOKEN }}
43
+ files: ./coverage/unit.xml
44
+ fail_ci_if_error: true
45
+ flags: unittests
46
47
fixtures:
48
runs-on: ubuntu-latest
0 commit comments