fedi-feed-router/.woodpecker.yml

35 lines
881 B
YAML
Raw Normal View History

2025-07-06 10:55:06 +02:00
when:
- event: push
branch: main
- event: pull_request
steps:
- name: setup
image: php:8.2-cli
commands:
- apt-get update && apt-get install -y git unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install --no-dev --optimize-autoloader
- name: phpstan
image: php:8.2-cli
commands:
- composer install --dev
- ./vendor/bin/phpstan analyse --memory-limit=256M --no-progress
depends_on:
- setup
- name: phpunit
image: php:8.2-cli
environment:
- APP_ENV=testing
- DB_CONNECTION=sqlite
- DB_DATABASE=:memory:
commands:
- composer install --dev
- cp .env.example .env
- php artisan key:generate
- php artisan config:clear
- php artisan test --no-coverage
depends_on:
- setup