Skip to content

Commit ccbf803

Browse files
author
İbrahim Halil Oğlakcı
committed
Fix: Switch to manual Pint execution in workflow
1 parent bc4e1bc commit ccbf803

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,24 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818
with:
19-
ref: ${{ github.head_ref }}
19+
ref: ${{ github.head_ref }}
2020

21-
- name: Fix PHP code style issues
22-
uses: agate/laravel-pint-action@v1
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: 8.2
25+
extensions: json, dom, curl, libxml, mbstring
26+
coverage: none
27+
28+
- name: Install dependencies
29+
run: |
30+
composer require "laravel/pint" --dev --no-interaction --no-update
31+
composer update --prefer-stable --prefer-dist --no-interaction
32+
33+
- name: Run Pint
34+
run: ./vendor/bin/pint
2335

2436
- name: Commit changes
2537
uses: stefanzweifel/git-auto-commit-action@v5
2638
with:
27-
commit_message: "Fix: Auto-format code with Pint"
39+
commit_message: "Fix: Auto-format code with Pint"

0 commit comments

Comments
 (0)