Skip to content

Commit 9ae1869

Browse files
committed
pint
1 parent 629e32b commit 9ae1869

File tree

1 file changed

+22
-25
lines changed

1 file changed

+22
-25
lines changed

.github/workflows/pint.yml

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,28 @@
1-
name: Fix Code Style
1+
name: Laravel Pint
22

3-
on: [push]
3+
on:
4+
push:
5+
pull_request:
46

57
jobs:
6-
lint:
7-
runs-on: ubuntu-latest
8-
strategy:
9-
fail-fast: true
10-
matrix:
11-
php: [8.0]
8+
lint:
9+
runs-on: ubuntu-latest
1210

13-
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0 # Fetch all history for all branches
1616

17-
- name: Setup PHP
18-
uses: shivammathur/setup-php@v2
19-
with:
20-
php-version: ${{ matrix.php }}
21-
extensions: json, dom, curl, libxml, mbstring
22-
coverage: none
17+
- name: Run Laravel Pint
18+
run: |
19+
composer install
20+
./vendor/bin/pint
2321
24-
- name: Install Pint
25-
run: composer global require laravel/pint
26-
27-
- name: Run Pint
28-
run: pint
29-
30-
- name: Commit linted files
31-
uses: stefanzweifel/git-auto-commit-action@v5
22+
- name: Commit changes
23+
uses: stefanzweifel/git-auto-commit-action@v5
24+
with:
25+
add_options: '.'
26+
commit_message: 'Apply automatic changes'
27+
commit_user_name: 'github-actions[bot]'
28+
push_options: '--force'

0 commit comments

Comments
 (0)