Skip to content

PSR formatting

PSR formatting #27

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
lint:
strategy:
matrix:
php: [ 8.3 ]
name: Check PHP syntax
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- uses: actions/checkout@v2
- run: composer update
- run: vendor/bin/parallel-lint src
- run: vendor/bin/phpcs --standard=PSR2 -n src
unit-tests-static-analysis:
name: Check PHP syntax
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
ini-values: zend.assertions = 1
tools: composer:v2
- uses: actions/checkout@v2
- run: composer update
- run: vendor/bin/psalm
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v