-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update code & supports only maintained verisons of sf
- Loading branch information
Showing
31 changed files
with
2,784 additions
and
240 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
on: [pull_request] | ||
name: Static analysis | ||
jobs: | ||
php-cs-fixer: | ||
name: 🧽 PHP-CS-Fixer | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.3 | ||
|
||
- name: Install php-cs-fixer | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
composer-options: "--working-dir=tools/php-cs-fixer" | ||
|
||
- name: PHP-CS-Fixer | ||
run: tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff --config=.php-cs-fixer.dist.php | ||
|
||
audit: | ||
name: 🔍 Audit vendors | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.3 | ||
|
||
- name: Download dependencies | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: Check whether a PHP dependency is compromised | ||
shell: bash | ||
run: composer audit |
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,52 @@ | ||
on: [pull_request] | ||
name: PHPUnit | ||
|
||
jobs: | ||
tests: | ||
name: Tests | ||
runs-on: Ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
# Lowest Deps | ||
- php: 8.2 | ||
symfony-require: 5.4.* | ||
composer-flags: '--prefer-stable --prefer-lowest' | ||
# LTS with latest stable PHP | ||
- php: 8.2 | ||
symfony-require: 6.4.* | ||
composer-flags: '--prefer-stable' | ||
# Active release | ||
- php: 8.3 | ||
symfony-require: 7.1.* | ||
composer-flags: '--prefer-stable --ignore-platform-req=php+' | ||
# Development release | ||
- php: nightly | ||
symfony-require: 7.1.*@dev | ||
composer-flags: '--ignore-platform-req=php+' | ||
stability: dev | ||
can-fail: true | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
|
||
- name: Configure Composer minimum stability | ||
if: matrix.stability | ||
run: composer config minimum-stability ${{ matrix.stability }} | ||
|
||
- name: Install dependencies | ||
env: | ||
SYMFONY_REQUIRE: ${{ matrix.symfony-require }} | ||
run: composer update ${{ matrix.composer-flags }} --no-interaction --no-progress --optimize-autoloader | ||
|
||
- name: Run PHPUnit | ||
run: vendor/bin/simple-phpunit |
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,6 +1,4 @@ | ||
.php_cs.cache | ||
build | ||
phpunit.xml | ||
coverage | ||
composer.lock | ||
vendor | ||
/composer.lock | ||
/vendor | ||
/tools/**/vendor |
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
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
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.