Skip to content

Add notifications sidebar for ET #107

Add notifications sidebar for ET

Add notifications sidebar for ET #107

Workflow file for this run

name: 'PHPStan Tests'
on:
pull_request:
paths:
- '.github/**/*'
- '*.php'
- 'src/**.php'
jobs:
phpstan:
strategy:
matrix:
phpVersion: [
"7.4",
# ----------------------------------------
# Disabled until we get all of 7.4 passing
# "8.0",
# "8.1",
# "8.2",
# "8.3",
# ----------------------------------------
]
runs-on: ubuntu-20.04
steps:
- name: Checkout the repository
uses: actions/checkout@v4
# ------------------------------------------------------------------------------
# Set up PHP and run phpstan
# ------------------------------------------------------------------------------
- name: Configure PHP environment to run phpstan
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.phpVersion }}
# ------------------------------------------------------------------------------
# Override composer php version
# ------------------------------------------------------------------------------
- name: Set php version ${{ matrix.phpVersion }} in composer
run: composer config platform.php ${{ matrix.phpVersion }}
# ------------------------------------------------------------------------------
# Install dependencies - ignoring php requirements
# ------------------------------------------------------------------------------
- name: Install dependencies
run: composer i --ignore-platform-req=php+
# ------------------------------------------------------------------------------
# Run phpstan
# ------------------------------------------------------------------------------
- name: Run phpstan
run: ./vendor/bin/phpstan analyse -c phpstan.neon.dist --memory-limit=512M --error-format=table