Skip to content

Commit

Permalink
Add PHPStan CI step (DOMjudge#2096)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickygerritsen authored Jul 8, 2023
1 parent cfd7a05 commit b417364
Show file tree
Hide file tree
Showing 117 changed files with 2,967 additions and 532 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run PHPStan
on:
push:
branches:
- main
- '[0-9]+.[0-9]+'
pull_request:
branches:
- main
- '[0-9]+.[0-9]+'

jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install DOMjudge
run: .github/jobs/baseinstall.sh admin
- uses: php-actions/phpstan@v3
with:
configuration: phpstan.dist.neon
path: webapp/src webapp/tests
php_extensions: gd intl mysqli pcntl zip
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
"require-dev": {
"ext-dom": "*",
"dama/doctrine-test-bundle": "^7.0",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-doctrine": "^1.3",
"squizlabs/php_codesniffer": "*",
"symfony/debug-bundle": "6.3.*",
"symfony/maker-bundle": "^1.42",
Expand Down
134 changes: 133 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b417364

Please sign in to comment.