From c2f5750e1c8a5fe1123b8f778592c42c3909b5f1 Mon Sep 17 00:00:00 2001 From: Cristiano Date: Sun, 30 Jul 2023 14:29:52 -0300 Subject: [PATCH] ci: send coverage to codecov --- .github/workflows/code-quality.yml | 8 ++++++++ .gitignore | 1 + phpunit.xml.dist | 3 +++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index bb43769..646586f 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -26,6 +26,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} + coverage: xdebug - name: Dependencies installation run: composer update --no-interaction --prefer-dist @@ -33,6 +34,13 @@ jobs: - name: Run PHPUnit run: composer test + - name: Upload to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODE_COV_TOKEN }} + files: ./coverage.xml + verbose: true + lint-and-fix: name: Lint code and fix code style runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index ccdb665..fdf1a08 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /composer.lock /.php-cs-fixer.cache /.phpunit.result.cache +/coverage.xml \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 60d6949..2df3977 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -21,5 +21,8 @@ src/ + + +