Skip to content

Bump minimum PHP version to 8.2.0 #58

Bump minimum PHP version to 8.2.0

Bump minimum PHP version to 8.2.0 #58

name: Lint and analyse PHP files
on:
push:
pull_request:
jobs:
lint-php:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up PHP 8.2
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: highest
- name: Lint files
run: composer run phpcs
analyse-php:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '8.2' ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: highest
- name: Analyse files with PHPStan
run: composer run phpstan
- name: Analyse files with Psalm
# Allow the previous check to fail but not abort
if: always()
run: vendor/bin/psalm --shepherd