Skip to content

Merge pull request #122 from fumeapp/laravel-11 #29

Merge pull request #122 from fumeapp/laravel-11

Merge pull request #122 from fumeapp/laravel-11 #29

Workflow file for this run

name: Larastan
on:
push:
branches-ignore:
- staging
- production
paths:
- "**.php"
- "!client/**"
jobs:
stan:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.3]
name: PHP Version:${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer, cs2pr
- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Setup cache
uses: pat-s/always-upload-cache@v1.1.4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --prefer-dist --no-suggest --no-progress
- name: Detect Larastan violations
run: vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr