Skip to content

helping out phpstan #38

helping out phpstan

helping out phpstan #38

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 --show-info=true
# - run: vendor/bin/phpstan analyze --level=9 src
- 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