Skip to content

Commit

Permalink
cache php-cs-fixer in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclermont committed Dec 16, 2023
1 parent 20dc9b7 commit 43bfd9d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 43bfd9d

Please sign in to comment.