forked from FriendsOfSymfony1/symfony1
-
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.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
812 changed files
with
6,695 additions
and
7,417 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,31 +1,43 @@ | ||
name: "Code Linting" | ||
on: | ||
push: | ||
paths: | ||
- .php-cs-fixer.dist.php | ||
- autoload.php | ||
- lib/** | ||
- data/** | ||
- tests/** | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- .php-cs-fixer.dist.php | ||
- autoload.php | ||
- lib/** | ||
- data/** | ||
- tests/** | ||
|
||
jobs: | ||
php-cs-fixer: | ||
name: 'PHP-CS-Fixer' | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
tools: php-cs-fixer, cs2pr | ||
php-version: 7.4 | ||
tools: php-cs-fixer:3.52, cs2pr | ||
|
||
- uses: actions/cache@v3 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: '.php-cs-fixer.cache' | ||
key: ${{ github.repository }}-8.2-phpcsfixer-${{ github.ref_name }} | ||
key: ${{ github.repository }}-7.4-phpcsfixer-${{ github.ref_name }} | ||
restore-keys: | | ||
${{ github.repository }}-8.2-phpcsfixer-master | ||
${{ github.repository }}-8.2-phpcsfixer- | ||
${{ github.repository }}-7.4-phpcsfixer-master | ||
${{ github.repository }}-7.4-phpcsfixer- | ||
- name: Run PHP-CS-Fixer | ||
# Using cs2pr settings, see: https://github.com/shivammathur/setup-php#tools-with-checkstyle-support | ||
run: 'php-cs-fixer fix --dry-run --format checkstyle | cs2pr' | ||
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
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.