diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index cf91a9b..cd48493 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -27,7 +27,7 @@ jobs: with: php-version: ${{ matrix.php-version }} extensions: curl, json, mbstring - coverage: none + coverage: pcov tools: composer:v2 - name: Set composer cache directory @@ -46,8 +46,8 @@ jobs: - name: Install composer dependencies run: composer install --no-interaction --prefer-dist --no-progress - - name: Run phpunit unit tests - run: vendor/bin/phpunit --testsuite=unit --colors=always --testdox + - name: Run phpunit unit tests with coverage + run: vendor/bin/phpunit --testsuite=unit --colors=always --testdox --coverage-clover=coverage.xml # integration tests send requests to the live CurseForge API and need the CURSEFORGE_API_KEY secret, # so they only run on the master branch and when started manually diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0dcdabb..8bf5c02 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,27 +1,27 @@ - - - src - - - - - ./tests/Integration/Client - - - tests/Unit/Client - - - - - + + + tests/Unit/Client + + + tests/Integration/Client + + + + + src/Client + + + + +