Skip to content

Phpstan deprecations #43

Phpstan deprecations

Phpstan deprecations #43

name: Pull request checks
on:
pull_request:
# The specific activity types are listed here to include "labeled" and "unlabeled"
# (which are not included by default for the "pull_request" trigger).
# This is needed to allow skipping enforcement of the changelog in PRs with specific labels,
# as defined in the (optional) "skipLabels" property.
types: [ opened, synchronize, reopened, ready_for_review, labeled, unlabeled ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.2']
composer-options:
- --prefer-dist --no-progress --no-interaction
- --prefer-dist --no-progress --no-interaction --prefer-lowest
steps:
# Checkout & installation
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php }}"
# Install project
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction
- name: Composer update
run: composer update ${{ matrix.composer-options }}
# Tests
- name: Run Composer linter
run: composer validate --strict --no-check-lock
- name: Run PHPUnit
run: composer run-script phpunit
if: success() || failure()
- name: Run PHPStan
run: composer run-script phpstan
if: success() || failure()
- name: Run PHP-CS-Fixer
run: composer run-script php-cs-fixer-dry-run
if: success() || failure()
- uses: dangoslen/changelog-enforcer@v3
if: success() || failure()