Phpstan #36
Workflow file for this run
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: 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: ['7.4'] | |
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 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() | |
- name: Run PHP unit test suite | |
run: vendor/bin/phpunit -v -c . | |
- uses: dangoslen/changelog-enforcer@v3 | |
if: success() || failure() |