fix a PHPStan error that happens in CI jobs only (II) #123
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: Static Analysis | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
static-analysis: | |
runs-on: ubuntu-22.04 | |
container: | |
image: phpswoole/swoole:6.0-php8.3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP And Swoole | |
run: | | |
set -e | |
echo "swoole.enable_library=Off" >> /usr/local/etc/php/conf.d/docker-php-ext-swoole.ini | |
composer require -n -q --no-progress -- phpstan/phpstan=~2.0 | |
- name: Run Static Analysis | |
run: ./vendor/bin/phpstan analyse --no-progress --memory-limit 2G |