This commit is contained in:
Shish 2023-02-03 16:49:25 +00:00
parent 8b73bd7fa5
commit 29dc3a65bb

View file

@ -13,25 +13,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Up Cache
uses: actions/cache@v3
with:
path: |
vendor
key: php-cs-fixer-${{ hashFiles('composer.lock') }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install PHP dependencies
run: composer install --prefer-dist --no-progress
- name: Set up PHP
uses: shivammathur/setup-php@master
with:
php-version: 8.1
- name: Format
run: ./vendor/bin/php-cs-fixer fix && git diff --exit-code
@ -43,6 +38,14 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set Up Cache
uses: actions/cache@v3
with:
path: |
vendor
key: phpstan-${{ hashFiles('composer.lock') }}
- name: Install PHP dependencies
run: composer install --prefer-dist --no-progress
- name: PHPStan
uses: php-actions/phpstan@v3
with: