Skip to content

add ci

add ci #1

Workflow file for this run

name: Run CI phpunit, phpstan, Pint
on: [push]
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.4]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, dom, curl, libxml, mbstring
coverage: none
- name: Install Dependencies
run: composer install --no-progress --prefer-dist
- name: Prepare Laravel Application
run: |
cp .env.example .env
php artisan key:generate
- name: Run tests
run: php artisan test
- name: Run PHPStan
run: vendor/bin/phpstan analyse --memory-limit=1G
- name: Run Laravel Pint
run: vendor/bin/pint