-
-
Notifications
You must be signed in to change notification settings - Fork 19
[4.x] Set up PHPStan on GitHub Actions #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
d0dc15d
9d4a7f9
e6dee26
9945188
d29f87e
fc607da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -21,3 +21,23 @@ jobs: | |||||||||||||
coverage: xdebug | ||||||||||||||
- run: composer install | ||||||||||||||
- run: vendor/bin/phpunit --coverage-text | ||||||||||||||
|
||||||||||||||
PHPStan: | ||||||||||||||
name: PHPStan | ||||||||||||||
runs-on: ubuntu-20.04 | ||||||||||||||
nhedger marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
strategy: | ||||||||||||||
matrix: | ||||||||||||||
php: [ 8.1 ] | ||||||||||||||
nhedger marked this conversation as resolved.
Show resolved
Hide resolved
nhedger marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
steps: | ||||||||||||||
- name: Checkout | ||||||||||||||
uses: actions/checkout@v3 | ||||||||||||||
- name: Set up PHP | ||||||||||||||
uses: shivammathur/setup-php@v2 | ||||||||||||||
Comment on lines
+33
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Remove names for consistency with other actions?
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be honest I'd rather we add names to the other steps for consistency x) |
||||||||||||||
with: | ||||||||||||||
php-version: ${{ matrix.php }} | ||||||||||||||
coverage: none | ||||||||||||||
tools: phpstan | ||||||||||||||
nhedger marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
- name: Install Composer dependencies | ||||||||||||||
run: composer install | ||||||||||||||
- name: Run static analysis | ||||||||||||||
run: phpstan analyse | ||||||||||||||
Comment on lines
+41
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Remove names for consistency with other actions?
Suggested change
|
Uh oh!
There was an error while loading. Please reload this page.