-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update static ci * update baselines * fix * test h2push better
- Loading branch information
Showing
32 changed files
with
638 additions
and
545 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 |
---|---|---|
|
@@ -103,7 +103,7 @@ jobs: | |
- name: Set up PHP | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: 7.4 | ||
php-version: 8.2 | ||
tools: flex | ||
|
||
- name: Checkout code | ||
|
@@ -122,7 +122,7 @@ jobs: | |
- name: Run tests | ||
run: | | ||
docker run --rm --net buzz-bridge -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e BUZZ_TEST_SERVER=http://test-server/index.php php:7.4-cli php vendor/bin/phpunit | ||
docker run --rm --net buzz-bridge -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e BUZZ_TEST_SERVER=http://test-server/index.php php:8.2-cli php vendor/bin/phpunit | ||
lowest: | ||
name: Lowest deps | ||
|
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 |
---|---|---|
@@ -1,47 +1,67 @@ | ||
on: [ pull_request ] | ||
name: Static analysis | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
phpstan: | ||
name: PHPStan | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.3 | ||
extensions: apcu, redis | ||
coverage: none | ||
tools: phpstan:1.12, cs2pr | ||
|
||
- name: Download dependencies | ||
run: | | ||
composer update --no-interaction --prefer-dist --optimize-autoloader | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: PHPStan | ||
uses: docker://oskarstark/phpstan-ga | ||
with: | ||
entrypoint: /composer/vendor/bin/phpstan | ||
args: analyze --no-progress | ||
run: phpstan analyze --no-progress --error-format=checkstyle | cs2pr | ||
|
||
php-cs-fixer: | ||
name: PHP-CS-Fixer | ||
psalm: | ||
name: Psalm | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: PHP-CS-Fixer | ||
uses: docker://oskarstark/php-cs-fixer-ga | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
args: --dry-run --diff-format udiff | ||
php-version: 8.3 | ||
extensions: apcu, redis | ||
coverage: none | ||
tools: vimeo/psalm:5.26 | ||
|
||
psalm: | ||
name: Psalm | ||
- name: Download dependencies | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: Psalm | ||
run: psalm --no-progress --output-format=github | ||
|
||
php-cs-fixer: | ||
name: PHP-CS-Fixer | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Psalm | ||
uses: docker://vimeo/psalm-github-actions | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
args: --no-progress --show-info=false --stats | ||
php-version: 8.3 | ||
coverage: none | ||
tools: php-cs-fixer:3.64, cs2pr | ||
|
||
- name: Display PHP-CS-Fixer version | ||
run: sleep 1 && php-cs-fixer --version | ||
|
||
- name: PHP-CS-Fixer | ||
run: php-cs-fixer fix --dry-run --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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.php_cs.cache | ||
.php-cs-fixer.cache | ||
bin | ||
composer.lock | ||
composer.phar | ||
|
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,21 @@ | ||
<?php | ||
|
||
$finder = (new PhpCsFixer\Finder()) | ||
->in(__DIR__ . '/lib') | ||
->in(__DIR__ . '/tests') | ||
->exclude('vendor') | ||
->name('*.php'); | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'array_syntax' => array('syntax' => 'short'), | ||
'protected_to_private' => false, | ||
'declare_strict_types' => true, | ||
'no_superfluous_phpdoc_tags' => true, | ||
'nullable_type_declaration_for_default_null_value' => false, | ||
'modernize_strpos' => false, | ||
]) | ||
->setFinder($finder); |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.