Skip to content

Commit

Permalink
Added PHPStan to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jamielsharief committed Jan 4, 2021
1 parent 3e367ae commit a2e40a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ jobs:
run: |
composer require php-coveralls/php-coveralls:^2.4 --dev --no-update
composer update --no-progress --prefer-dist
- name: Running PHPUnit
- name: Run PHPUnit
run: "php vendor/bin/phpunit --coverage-clover=clover.xml"
- name: Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "php vendor/bin/php-coveralls --verbose"
if: ${{ success() }}
if: ${{ success() }}
- name: Run PHPStan
run: "vendor/bin/phpstan analyse src --error-format=github"
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

},
"require-dev": {
"phpunit/phpunit": "^9.2"
"phpunit/phpunit": "^9.2",
"phpstan/phpstan": "^0.12.64"
}
}

0 comments on commit a2e40a5

Please sign in to comment.