Skip to content

fix Dockerfile

fix Dockerfile #64

name: phpstan analyse code
on: [push]
jobs:
phpstan-analyse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Generate model helpers for laravel Facades
run: php artisan ide-helper:generate --no-interaction && php artisan ide-helper:model --no-interaction --write
- name: Run phpstan analyse code
run: vendor/bin/phpstan analyse --configuration=phpstan.neon --no-progress --memory-limit=1G