Add woodpecker config
This commit is contained in:
parent
ad572148f0
commit
ef01015492
1 changed files with 35 additions and 0 deletions
35
.woodpecker.yml
Normal file
35
.woodpecker.yml
Normal 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
|
||||
Loading…
Reference in a new issue