Skip to content

Commit

Permalink
ci: Add PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Aug 15, 2023
1 parent 37d0ff7 commit 2a0d004
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "CI"

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
check:
name: "PHPStan"
runs-on: "ubuntu-latest"

strategy:
matrix:
php:
- "7.4"

steps:
- name: "Checkout"
uses: "actions/checkout@v3"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"

- name: "Run PHPStan"
run: "vendor/bin/phpstan analyse --no-progress --error-format=github"

0 comments on commit 2a0d004

Please sign in to comment.