Add woodpecker config

This commit is contained in:
myrmidex 2025-07-06 10:55:06 +02:00
parent ad572148f0
commit ef01015492

35
.woodpecker.yml Normal file
View file

@ -0,0 +1,35 @@
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