Skip to content

Commit bc87f64

Browse files
committed
revert
1 parent 16a8849 commit bc87f64

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

.github/workflows/style.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,27 @@ on:
88
- master
99

1010
jobs:
11-
php-cs-fixer:
12-
runs-on: ubuntu-latest
11+
phpcsfixer:
12+
name: Linting with php-cs-fixer
13+
runs-on: ubuntu-20.04
14+
strategy:
15+
fail-fast: false
16+
1317
steps:
14-
- uses: actions/checkout@v4
15-
with:
16-
ref: ${{ github.head_ref }}
18+
- name: Checkout code
19+
uses: actions/checkout@v4
1720

18-
- uses: shivammathur/setup-php@v2
21+
- name: Install PHP
22+
uses: shivammathur/setup-php@v2
1923
with:
20-
coverage: none
21-
extensions: mbstring
24+
coverage: pcov
25+
ini-values: zend.assertions=1, assert.exception=1
2226
php-version: 8.1
27+
extensions: memcached
28+
tools: cs2pr
2329

24-
- uses: ramsey/composer-install@v2
30+
- name: Install dependencies with Composer
31+
uses: ramsey/composer-install@v2
2532

26-
- run: vendor/bin/php-cs-fixer fix
27-
28-
- uses: stefanzweifel/git-auto-commit-action@v4
29-
with:
30-
commit_message: Apply php-cs-fixer changes
33+
- name: Run PHP-CS-Fixer
34+
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --format checkstyle | cs2pr

0 commit comments

Comments
 (0)