Skip to content

Commit 2f58a06

Browse files
author
antoine
committed
Add pint workflow
1 parent 2bbcf05 commit 2f58a06

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Fix Code Style
2+
3+
on:
4+
push:
5+
- main
6+
# - 9.0
7+
workflow_dispatch:
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
php: [8.3]
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
extensions: json, dom, curl, libxml, mbstring
25+
coverage: none
26+
27+
- name: Install Pint
28+
run: composer global require laravel/pint
29+
30+
- name: Run Pint
31+
run: pint
32+
33+
- name: Commit linted files
34+
uses: stefanzweifel/git-auto-commit-action@v5
35+
with:
36+
commit_message: "CS fix"

0 commit comments

Comments
 (0)