From 07fac61964a2bdf1378f75c911038ecd105ab207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 31 Oct 2023 13:58:27 +0100 Subject: [PATCH] Cache PHP-CS-Fixer (#35) * Cache PHP-CS-Fixer * Update tests.yml --- .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 65f3aec..1a1fd87 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,6 +39,12 @@ jobs: coverage: none - name: Checkout uses: actions/checkout@v4 + - name: Cache PHP-CS-Fixer + if: matrix.check-cs + uses: actions/cache@v3 + with: + path: .php-cs-fixer.cache + key: ${{ runner.os }}-${{ matrix.php-version }}-phpcsfixer - name: Install Composer dependencies run: composer update --optimize-autoloader --no-progress --ansi --no-interaction - name: Build @@ -47,7 +53,7 @@ jobs: if: startsWith(matrix.os, 'windows') == false run: | if ! git diff --exit-code --name-status; then - echo "::error file=$(git diff --name-status | head -n1)::PLEASE RUN bin/unipoints build" + echo "::error file=$(git diff --name-status | head -n 1)::PLEASE RUN bin/unipoints build" exit 1 fi - name: Check PHP coding style