-
-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v5] PHP 8.1, Symfony 6.4, phpstan (#2216)
* bump dependencies for to php >=8.1 * remove symfony 5.4 support & bump symfony 6 to minimum 6.4 * use ramsey/composer-install in ci * use ramsey/composer-install in ci * use ramsey/composer-install in ci * fix sensio/framework-extra-bundle dependency * ease symfony/framework-bundle constraint * remove unsupported sensio/framework-extra-bundle * Revert "remove unsupported sensio/framework-extra-bundle" This reverts commit a028601. * fix incompatible Symfony 7 job being skipped * fix incorrect docs for MapQueryString controller * rewrite annotation detection * fix symfony 7 not using serializer groups * update baseline * exclude symfony 7 with annotations support * skip symfony 7 & php 8.1 * replace phpunit baseline with ignoreFile * bump phpunit * improve ci readability * rename docs workflow * add phpstan * use ubuntu latest * ci docs: use same rules to lower jobs * cleanup phpunit.xml.dist * include root php files * generate phpstan baseline * style fix * bump dependencies for to php >=8.1 * remove symfony 5.4 support & bump symfony 6 to minimum 6.4 * use ramsey/composer-install in ci * use ramsey/composer-install in ci * use ramsey/composer-install in ci * fix sensio/framework-extra-bundle dependency * ease symfony/framework-bundle constraint * remove unsupported sensio/framework-extra-bundle * Revert "remove unsupported sensio/framework-extra-bundle" This reverts commit a028601. * fix incompatible Symfony 7 job being skipped * fix incorrect docs for MapQueryString controller * rewrite annotation detection * fix symfony 7 not using serializer groups * update baseline * exclude symfony 7 with annotations support * skip symfony 7 & php 8.1 * replace phpunit baseline with ignoreFile * bump phpunit * improve ci readability * rename docs workflow * add phpstan * use ubuntu latest * ci docs: use same rules to lower jobs * cleanup phpunit.xml.dist * include root php files * generate phpstan baseline * style fix * update phpstan-baseline
- Loading branch information
1 parent
61c08f1
commit 33c3cdd
Showing
16 changed files
with
2,413 additions
and
12,926 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
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,42 @@ | ||
name: "static-analysis" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "*.x" | ||
- master | ||
push: | ||
branches: | ||
- "*.x" | ||
- master | ||
|
||
jobs: | ||
static-analysis: | ||
name: "PHPStan" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Install PHP without coverage" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' | ||
|
||
- name: "Cache dependencies" | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: "Install dependencies with composer" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
dependency-versions: 'highest' | ||
|
||
- name: "PHPStan" | ||
run: composer phpstan |
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,4 @@ | ||
framework: | ||
annotations: true | ||
serializer: | ||
enable_annotations: true |
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
Oops, something went wrong.