forked from doctrine/doctrine1
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
13,825 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Static Analysis | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- .github/workflows/static-analysis.yml | ||
- tests/StaticAnalysis/* | ||
- composer.* | ||
- lib/** | ||
- phpstan* | ||
|
||
push: | ||
branches: | ||
- master | ||
paths: | ||
- .github/workflows/static-analysis.yml | ||
- tests/StaticAnalysis/* | ||
- composer.* | ||
- lib/** | ||
- phpstan* | ||
|
||
jobs: | ||
static-analysis-phpstan: | ||
name: Static Analysis with PHPStan | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
php-version: 8.3 | ||
tools: cs2pr | ||
|
||
- name: Install dependencies with Composer | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: Run static analysis w/ phpVersion 74 | ||
run: vendor/bin/phpstan analyse -c tests/StaticAnalysis/phpstan-74.neon --error-format=checkstyle | cs2pr | ||
|
||
- name: Run static analysis w/ phpVersion 83 | ||
run: vendor/bin/phpstan analyse -c tests/StaticAnalysis/phpstan-83.neon --error-format=checkstyle | cs2pr | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
parameters: | ||
phpVersion: 80300 | ||
|
||
includes: | ||
- tests/StaticAnalysis/phpstan-params.neon | ||
- tests/StaticAnalysis/phpstan-baseline-83.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
parameters: | ||
phpVersion: 80300 | ||
|
||
includes: | ||
- phpstan-params.neon | ||
- phpstan-baseline-74.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
parameters: | ||
phpVersion: 80300 | ||
|
||
includes: | ||
- phpstan-params.neon | ||
- phpstan-baseline-83.php |
Oops, something went wrong.