From 7382e7dad26db22d8ed340cb966ca2a2066caac7 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 15 Apr 2024 10:12:06 +0200 Subject: [PATCH] Add workflow to check Pest type coverage --- .github/workflows/static-analysis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 8037cca05f5..f0b34dc94d9 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -24,3 +24,16 @@ jobs: - name: Ping CI server with type coverage results if: github.event.repository.full_name == 'hydephp/develop' run: php monorepo/scripts/ping-ci-server-with-type-coverage.php ${{ secrets.CI_SERVER_TOKEN }} ${{ github.event.pull_request.head.sha }} ${{ github.head_ref }} ${{ github.run_id }} + + type-coverage: + name: Check Type Coverage + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Composer Dependencies + run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + + - name: Run Pest Type Coverage + run: ./vendor/bin/pest --type-coverage