Skip to content

Commit

Permalink
Add PHPStan to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yguedidi committed Dec 11, 2023
1 parent 016d7b8 commit 252bd9b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,25 @@ jobs:
- name: Validate composer.json
run: composer validate --strict --no-check-lock

static_analysis:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: '8.2'

- name: Install dependencies
run: composer update --ansi --no-progress --prefer-dist --no-interaction

- name: Install PHPUnit
run: vendor/bin/simple-phpunit install

- run: vendor/bin/phpstan analyze

tests:
name: "Tests on PHP ${{ matrix.php }}${{ matrix.name_suffix }}"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 252bd9b

Please sign in to comment.