Skip to content

v1.3.0: Bug fixes, DateTimeImmutable, SEPA improvements, API auth, te… #4

v1.3.0: Bug fixes, DateTimeImmutable, SEPA improvements, API auth, te…

v1.3.0: Bug fixes, DateTimeImmutable, SEPA improvements, API auth, te… #4

Workflow file for this run

name: Tests
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
phpunit:
runs-on: ubuntu-latest
name: PHPUnit Tests
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: nextcloud
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=10
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: pdo, pdo_mysql
- name: Install Dependencies
run: |
composer install --no-interaction --prefer-dist
- name: Run PHPUnit Tests
run: |
vendor/bin/phpunit -c phpunit.xml --colors=always
env:
DB_HOST: 127.0.0.1
DB_PORT: 3306
DB_NAME: nextcloud
DB_USER: root
DB_PASSWORD: rootpassword
phpstan:
runs-on: ubuntu-latest
name: PHPStan Analysis
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install PHPStan
run: |
composer require --dev phpstan/phpstan --no-interaction
- name: Run PHPStan
run: |
vendor/bin/phpstan analyse lib/ --level=5 --memory-limit=512M
php-cs-fixer:
runs-on: ubuntu-latest
name: Code Style Check
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Coding Standard
run: |
composer require --dev friendsofphp/php-cs-fixer --no-interaction
- name: Run PHP-CS-Fixer
run: |
vendor/bin/php-cs-fixer fix --dry-run --diff --rules=@PSR12 lib/