fedi-feed-router/.forgejo/workflows/ci.yml

40 lines
859 B
YAML
Raw Normal View History

2025-07-06 10:57:55 +02:00
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
2025-07-06 11:00:49 +02:00
runs-on: docker
container: php:8.2-cli
2025-07-06 10:57:55 +02:00
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, xml, bcmath, pdo, sqlite, pdo_sqlite
coverage: none
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse --memory-limit=256M
- name: Prepare Laravel Application
run: |
cp .env.example .env
php artisan key:generate
php artisan config:clear
- name: Run PHPUnit Tests
env:
DB_CONNECTION: sqlite
DB_DATABASE: ':memory:'
run: php artisan test