From 3748d301e96674908ce49f7556f7c90d089f5746 Mon Sep 17 00:00:00 2001 From: parsilver Date: Thu, 25 May 2023 12:20:29 +0700 Subject: [PATCH 1/2] Add coverage report --- .github/workflows/run-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index eda926f..ba0eb5b 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -34,10 +34,10 @@ jobs: run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests - run: vendor/bin/pest --coverage-clover=coverage.xml + run: vendor/bin/pest --coverage --coverage-clover=coverage.xml - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 with: - file: coverage.xml + file: ./coverage.xml token: ${{ secrets.CODECOV_TOKEN }} From 88e0ae0c03bc7d73f84b22a14dfd405a7258faf1 Mon Sep 17 00:00:00 2001 From: parsilver Date: Thu, 25 May 2023 12:22:01 +0700 Subject: [PATCH 2/2] Fix --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ba0eb5b..ece19f0 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -23,7 +23,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo - coverage: none + coverage: pcov - name: Setup problem matchers run: |