dishplanner/.forgejo/workflows/ci.yml
myrmidex 7954d9499d
All checks were successful
CI / ci (push) Successful in 2m7s
CI / ci (pull_request) Successful in 33s
46 - Pre-load PHP dependencies into the CI image
2026-08-17 21:18:01 +02:00

32 lines
734 B
YAML

name: CI
on:
push:
branches: ['release/*']
pull_request:
branches: [main, 'release/*']
jobs:
ci:
runs-on: docker
container:
image: forge.lvl0.xyz/lvl0/dishplanner-ci:php8.3-4
steps:
- uses: https://data.forgejo.org/actions/checkout@v4
- name: Prepare environment
run: cp .env.testing .env
- name: Restore dependencies
run: |
cp -a /opt/deps/vendor ./vendor
composer install --no-interaction --no-progress --prefer-source
- 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