Go CLI commands moved to core/go-php. This repo now contains the Laravel modular monolith framework (previously php-framework). - Remove all Go files (now in core/go-php) - Add PHP framework: event-driven module loading, lifecycle events - Composer package: core/php - core/php-framework remains as-is for backward compat Co-Authored-By: Virgil <virgil@lethean.io>
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
name: PHP ${{ matrix.php }}
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
php: ["8.3", "8.4"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup PHP
|
|
uses: https://github.com/shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
|
|
coverage: pcov
|
|
|
|
- name: Install dependencies
|
|
run: composer install --prefer-dist --no-interaction --no-progress
|
|
|
|
- name: Run Pint
|
|
run: |
|
|
if [ -f vendor/bin/pint ]; then
|
|
vendor/bin/pint --test
|
|
else
|
|
echo "Pint not installed, skipping"
|
|
fi
|
|
|
|
- name: Run tests
|
|
run: |
|
|
if [ -f vendor/bin/pest ]; then
|
|
vendor/bin/pest --ci --coverage
|
|
elif [ -f vendor/bin/phpunit ]; then
|
|
vendor/bin/phpunit --coverage-text
|
|
else
|
|
echo "No test runner found, skipping"
|
|
fi
|