diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c966a7d2..369765aa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: