From 9244d0de7af2e54942fb378a3aaa143d0b131d87 Mon Sep 17 00:00:00 2001 From: Roj Vroemen Date: Wed, 11 Sep 2024 17:18:17 +0200 Subject: [PATCH] Upload code coverage to codecov --- .github/workflows/tests.yml | 9 +++++++++ phpunit.xml.dist | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d745dba..5c5a049 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,3 +34,12 @@ jobs: - name: Execute tests run: vendor/bin/phpunit + env: + XDEBUG_MODE: coverage + + - name: Upload to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./build/coverage.xml + verbose: true diff --git a/phpunit.xml.dist b/phpunit.xml.dist index d57d707..f3700ba 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -20,7 +20,7 @@ - +