Update phpstan/phpstan requirement from ^1.9 to ^2.1 #49
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: | |
static-analysis-linux: | |
name: Static Analysis (PHP ${{ matrix.php }} on ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-22.04 | |
php: | |
- 8.2 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
ini-values: extension=ardillo | |
- name: Prepare environment | |
run: | | |
python3 -m pip install --upgrade pip setuptools wheel | |
sudo pip3 install meson ninja | |
sudo apt-get update -y | |
sudo apt-get install -y libgtk-3-dev xvfb | |
git clone https://github.com/ardillo-php/ext.git | |
cd ext && git submodule update --init && phpize && ./configure && make -j && sudo make install && cd .. | |
- name: Install Composer dependencies | |
run: xvfb-run -a composer install | |
- name: Run PHPStan | |
run: xvfb-run -a composer phpstan | |
- name: Run Psalm | |
run: xvfb-run -a composer psalm -- --output-format=github --shepherd |