upgraded PHP version to latest (PHP 8.4), some changes to checks.sh #7
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: Checks | |
on: [ pull_request ] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ ubuntu-latest ] | |
php: [ 8.4 ] | |
stability: [ prefer-stable ] | |
name: PHP-${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo | |
coverage: none | |
- name: Setup problem matchers | |
run: | | |
echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Install dependencies | |
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction | |
- name: Execute tests | |
run: vendor/bin/phpunit | |
- name: Execute static analysis | |
run: vendor/bin/phpstan analyse -c phpstan.neon -l 8 src | |
- name: Execute code style check | |
run: vendor/bin/phpcs --standard=PSR12 src | |
- name: Execute PHP Lint | |
run: vendor/bin/phplint | |
- name: Execute mess detection | |
run: vendor/bin/phpmd src/ text codesize,unusedcode,design,cleancode |