Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: PHPStan CI

on: push
on:
push:
pull_request:

jobs:
phpstan:
Expand All @@ -9,24 +11,16 @@ jobs:
if: "!contains(github.event.head_commit.message, '[ci skip]')"

steps:
- name: Startup
uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download PHP Release
uses: dsaltares/fetch-gh-release-asset@1.1.0
- name: Set up PHP
uses: pmmp/setup-php-action@3.2.0
with:
file: PHP-Linux-x86_64-PM5.tar.gz
repo: pmmp/PHP-Binaries
version: "tags/php-8.2-latest"
php-version: 8.2
install-path: ./bin

- name: Unpack PHP Release
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz

- name: Download Composer
run: curl -o composer.phar "https://getcomposer.org/composer-stable.phar"

- name: Install Composer dependencies
run: ./bin/php7/bin/php composer.phar install --prefer-dist --no-interaction
- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Run PHPStan
run: ./bin/php7/bin/php vendor/bin/phpstan.phar analyze --no-progress
run: php vendor/bin/phpstan.phar analyze --no-progress