Files
michaelschiemer/.gitea/workflows/ci.yml
Michael Schiemer 55a330b223 Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
2025-08-11 20:13:26 +02:00

52 lines
1.4 KiB
YAML

name: CI
on:
push:
pull_request:
jobs:
quality:
name: PHP Quality Checks
runs-on: ubuntu-latest
container:
image: composer:2
steps:
# Gitea runners usually have the repo checked out already. We avoid marketplace actions.
- name: Show versions
run: |
php -v
composer --version
- name: Install dependencies
run: |
composer install --no-interaction --prefer-dist --no-progress
- name: Code style (non-blocking for initial adoption)
run: |
if composer run -q cs 2>/dev/null; then
composer cs || true
else
echo "No 'cs' script found, skipping."
fi
- name: PHPStan
run: |
if composer run -q phpstan 2>/dev/null; then
composer phpstan
else
echo "No 'phpstan' script found, attempting vendor bin..."
./vendor/bin/phpstan analyse || exit 1
fi
- name: Pest tests
env:
XDEBUG_MODE: off
run: |
if [ -x ./vendor/bin/pest ]; then
./vendor/bin/pest -q
elif [ -x ./vendor/bin/phpunit ]; then
./vendor/bin/phpunit
else
echo "No test runner found."
exit 1
fi
- name: Composer audit (non-blocking initially)
run: |
composer audit --no-interaction || true