Minor cleaning up #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/phpstan analyze 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 |