Skip to content

chore: improve deploy #132

chore: improve deploy

chore: improve deploy #132

Workflow file for this run

name: PHPStan
on:
workflow_dispatch:
pull_request:
paths:
- '**.php'
- 'phpstan.neon.dist'
jobs:
phpstan:
name: phpstan
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install composer dependencies
run: |
export COMPOSER_HOME="$HOME/.config/composer";
composer install --prefer-dist --no-interaction --no-progress
- name: Generate key
run: php artisan key:generate
- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github