2026-08-17 13:30:49 +02:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: ['release/*']
|
|
|
|
|
pull_request:
|
|
|
|
|
branches: [main, 'release/*']
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
ci:
|
|
|
|
|
runs-on: docker
|
|
|
|
|
container:
|
2026-08-17 21:18:01 +02:00
|
|
|
image: forge.lvl0.xyz/lvl0/dishplanner-ci:php8.3-4
|
2026-08-17 13:30:49 +02:00
|
|
|
steps:
|
|
|
|
|
- uses: https://data.forgejo.org/actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Prepare environment
|
|
|
|
|
run: cp .env.testing .env
|
|
|
|
|
|
2026-08-17 21:18:01 +02:00
|
|
|
- name: Restore dependencies
|
|
|
|
|
run: |
|
|
|
|
|
cp -a /opt/deps/vendor ./vendor
|
|
|
|
|
composer install --no-interaction --no-progress --prefer-source
|
|
|
|
|
|
2026-08-17 13:30:49 +02:00
|
|
|
- name: Lint
|
|
|
|
|
run: vendor/bin/pint --test
|
|
|
|
|
|
|
|
|
|
- name: Static analysis
|
|
|
|
|
run: vendor/bin/phpstan analyse --memory-limit=1G
|
|
|
|
|
|
|
|
|
|
- name: Tests
|
|
|
|
|
run: php -d memory_limit=512M vendor/bin/phpunit
|