Skip to content

Commit 6ba441f

Browse files
committed
chore: php-cs-fixer re-configuration
* Add 'composer lint' command. * Update GitHub Actions CI command to latest v3 args. Changing CLI args in a minor version is a choice.
1 parent 9a1d7db commit 6ba441f

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,17 @@ jobs:
88

99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v4
12+
13+
- name: .php-cs-fixer.cache
14+
uses: actions/cache@v4
15+
with:
16+
path: .php-cs-fixer.cache
17+
key: ${{ runner.OS }}-${{ github.repository }}-php-cs-fixer-${{ github.sha }}
18+
restore-keys: |
19+
${{ runner.OS }}-${{ github.repository }}-php-cs-fixer-
1220
1321
- name: Check style
1422
uses: docker://oskarstark/php-cs-fixer-ga
1523
with:
16-
args: --config=.php-cs-fixer.php --dry-run --diff
24+
args: --dry-run --diff

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
bin/geckodriver*
22
storage
33
vendor
4-
.php_cs.cache
4+
.php-cs-fixer.cache
55
composer.lock
66
coverage
77
.phpunit.result.cache

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
},
4444
"scripts": {
4545
"download": "vendor/bin/phpunit tests/DownloadBinaries.php",
46+
"lint": "./vendor/bin/php-cs-fixer fix -vvv --dry-run --show-progress=dots --diff",
4647
"test": "vendor/bin/phpunit"
4748
},
4849
"extra": {

0 commit comments

Comments
 (0)