From 43bfd9dc674df87a14ab445401b89d279cf15c47 Mon Sep 17 00:00:00 2001 From: Joel Clermont Date: Fri, 15 Dec 2023 18:59:11 -0600 Subject: [PATCH] cache php-cs-fixer in ci --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f21071a..327cf91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,14 @@ jobs: restore-keys: | # prefix allows it to use previous cache as starting point phpstan-result-cache- + - name: Cache php-cs-fixer result cache + uses: actions/cache@v3 + with: + path: .php-cs-fixer.cache + key: "php-cs-fixer-result-cache-${{ github.run_id }}" # always unique key - always writes a new cache + restore-keys: | # prefix allows it to use previous cache as starting point + php-cs-fixer-result-cache- + - name: Run CI tools run: docker exec "$PROJECT_NAME-php-fpm" /usr/bin/env sh -c "COMPOSER_MEMORY_LIMIT=-1 composer ci"