From f9dc7adf752f70c4950392c5346da165c9233c1f Mon Sep 17 00:00:00 2001 From: brufdev Date: Fri, 10 Oct 2025 19:35:18 +0100 Subject: [PATCH] Add Pest type coverage cache in CI --- .github/workflows/tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 87c48f5..97a73e6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,6 +40,12 @@ jobs: - name: Install PHP dependencies run: composer install --no-interaction --prefer-dist --optimize-autoloader --ansi + - name: Cache Pest type coverage + uses: actions/cache@v4 + with: + path: vendor/pestphp/pest-plugin-type-coverage/.temp + key: pest-type-coverage-${{ runner.os }}-${{ hashFiles('composer.lock') }} + - name: Get NPM cache directory id: npm-cache-dir run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} @@ -64,5 +70,5 @@ jobs: cp .env.example .env php artisan key:generate - - name: Tests + - name: Run linters, static analysis, and tests run: composer test \ No newline at end of file