Skip to content

Commit

Permalink
adding phstan GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zaherg committed May 3, 2023
1 parent 87aca74 commit 2e1bd01
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/php-stan.yml
@@ -0,0 +1,40 @@
name: Larastan

on:
push:
pull_request:
branches:
- main

concurrency:
group: larastan-${{ github.ref_name || github.run_id }}
cancel-in-progress: true

jobs:

larastan:
name: Larastan PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2']

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
composer-options: "--no-progress --prefer-dist --optimize-autoloader"

- name: Larastan
run: php ./vendor/bin/phpstan analyse --memory-limit=2G --error-format=github

0 comments on commit 2e1bd01

Please sign in to comment.