From 83b20c0dff77af9dd373419a412b117508213e52 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 31 Jul 2020 15:12:12 +0200 Subject: [PATCH] Upload code coverage --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 764697e..f855be1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,3 +47,12 @@ jobs: vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml vendor/bin/php-cs-fixer --diff --dry-run -v fix vendor/bin/psalm + + - name: Upload coverage to Codecov + env: + OS: ${{ matrix.os }} + PHP: ${{ matrix.php-versions }} + uses: codecov/codecov-action@v1 + with: + file: build/logs/clover.xml + env_vars: OS,PHP