Skip to content

Added php-cs-fixer and integrated it into GHA workflow. #19

Added php-cs-fixer and integrated it into GHA workflow.

Added php-cs-fixer and integrated it into GHA workflow. #19

Workflow file for this run

name: PHP tests
on: [push]
jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3', 'latest']
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: Prepare
run: |
composer install --optimize-autoloader
chmod +x ./bin/*.sh
- name: Run tests
run: ./bin/tests.sh
- name: Run code style analysis
continue-on-error: false
run: ./bin/code-style.sh
- name: Run static analysis
continue-on-error: true
run: ./bin/phpstan.sh