diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7680718..4a9b836 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: uses: shivammathur/setup-php@728c6c6b8cf02c2e48117716a91ee48313958a19 # v2 with: php-version: ${{ matrix.php }} - coverage: none + coverage: pcov tools: composer:v2 - name: Install dependencies @@ -36,7 +36,7 @@ jobs: run: composer phpstan - name: Tests - run: composer test + run: composer test:coverage # Aggregate tracked by the town-crier trial (TC-0069), intended as the single # required check (the matrix legs stop being individually required). diff --git a/composer.json b/composer.json index dc0a414..51f90dc 100644 --- a/composer.json +++ b/composer.json @@ -42,6 +42,7 @@ }, "scripts": { "test": "pest", + "test:coverage": "pest --coverage --min=95", "phpstan": "phpstan analyse", "format": "pint", "format:check": "pint --test"