name: CI
on:
push:
branches: [main, 'feat/**']
pull_request:
branches: [main]
jobs:
test:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.3', '8.4']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, json
coverage: none
- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist
- name: Lint PHP files
run: |
find src public tests -name '*.php' -print0 | xargs -0 -n1 php -l
- name: Run PHPStan
run: composer analyse
- name: Run PHPUnit
run: composer test
|