Skip to content

Commit

Permalink
add phpstan github action
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 14, 2022
1 parent d32b668 commit 92f48dd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,25 @@ jobs:
run: "composer update --no-progress --prefer-dist"
- name: "Tests"
run: "test_old/run-php-src.sh 8.1.6"
phpstan:
runs-on: "ubuntu-latest"
name: "PHP ${{ matrix.php-version }} PHPStan"
strategy:
matrix:
php-version:
- "8.2"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: composer:v2
- name: "Install dependencies"
run: |
composer global require phpstan/phpstan:1.9.3
echo "$(composer global config bin-dir --absolute --quiet)" >> $GITHUB_PATH
- name: "PHPStan"
run: "phpstan"

0 comments on commit 92f48dd

Please sign in to comment.