Skip to content

Commit

Permalink
Cache PHP-CS-Fixer (#35)
Browse files Browse the repository at this point in the history
* Cache PHP-CS-Fixer

* Update tests.yml
  • Loading branch information
szepeviktor authored Oct 31, 2023
1 parent 999d2c3 commit 07fac61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 07fac61

Please sign in to comment.