Undo CI-CD

This commit is contained in:
myrmidex 2025-07-06 11:03:35 +02:00
parent 5e79e82452
commit 833cf7a313
2 changed files with 0 additions and 75 deletions

View file

@ -1,40 +0,0 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: docker
container: php:8.2-cli
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

View file

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