Skip to content

Removed testing from standards doc #20

Removed testing from standards doc

Removed testing from standards doc #20

Workflow file for this run

name: Code Quality
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
code-quality:
runs-on: ubuntu-latest
name: Code Quality Checks
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
tools: php-cs-fixer
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-8.3-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Check code style
run: vendor/bin/php-cs-fixer fix --dry-run --diff --verbose --config=.php-cs-fixer.php
- name: Run static analysis (if available)
run: |
if [ -f "vendor/bin/phpstan" ]; then
vendor/bin/phpstan analyse
else
echo "PHPStan not installed, skipping static analysis"
fi
continue-on-error: true