list released versions #74
Workflow file for this run
This file contains hidden or 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: PHP QA | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| php: | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.experimental }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: ['8.1', '8.2', '8.3', '8.4'] | |
| experimental: [false] | |
| env: | |
| extensions: ast | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: ${{ env.extensions }} | |
| - name: Validate composer.json | |
| run: composer validate | |
| - name: Install dependencies | |
| id: composer | |
| if: steps.composer-cache.outputs.cache-hit != 'true' | |
| run: | | |
| composer --version | |
| composer install --prefer-dist --no-progress | |
| - name: Check Style | |
| id: style | |
| continue-on-error: ${{ matrix.experimental }} | |
| env: | |
| PHP_CS_FIXER_IGNORE_ENV: 1 | |
| run: | | |
| vendor/php-cs-fixer/vendor/bin/php-cs-fixer --version | |
| vendor/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --stop-on-violation --using-cache=no -vvv | |
| - name: Run Phan | |
| id: phan | |
| continue-on-error: ${{ matrix.experimental }} | |
| env: | |
| XDEBUG_MODE: off | |
| PHAN_DISABLE_XDEBUG_WARN: 1 | |
| run: | | |
| vendor/phan/vendor/bin/phan --version | |
| vendor/phan/vendor/bin/phan | |
| - name: Run Psalm | |
| id: psalm | |
| continue-on-error: ${{ matrix.experimental }} | |
| run: | | |
| vendor/psalm/vendor/bin/psalm --version | |
| vendor/psalm/vendor/bin/psalm --output-format=github | |
| - name: Run Phpstan | |
| id: phpstan | |
| continue-on-error: ${{ matrix.experimental }} | |
| run: | | |
| vendor/bin/phpstan --version | |
| vendor/bin/phpstan analyse --error-format=github | |
| - name: Run PHPUnit | |
| id: phpunit | |
| continue-on-error: ${{ matrix.experimental }} | |
| run: | | |
| vendor/bin/phpunit --version | |
| php -dzend.assertions=1 vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover |