Skip to content

PHP 8.1 - 8.4 support #437

PHP 8.1 - 8.4 support

PHP 8.1 - 8.4 support #437

Workflow file for this run

name: static analysis
on:
pull_request:
push:
schedule:
- cron: '0 0 * * *'
jobs:
static-analysis:
name: PHP ${{ matrix.php }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
php: [8.3]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2, cs2pr
coverage: none
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=E_ALL
coverage: none
- name: Run Psalm Static Analysis
run: |
vendor/bin/psalm \
--shepherd \
--stats \
--output-format=checkstyle \
--php-version=${{ matrix.php }} | cs2pr --graceful-warnings --colorize