Skip to content

Add larastan

Add larastan #844

Workflow file for this run

name: PHP Composer
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.2', '8.3']
name: PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Generate key
run: php artisan key:generate
- name: Run npm install
run: npm install
- name: Run npm run production
run: npm run production
- name: Run test suite
run: ./vendor/bin/pest