generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (34 loc) · 960 Bytes
/
pint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Check & fix styling
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
pint:
runs-on: ubuntu-latest
name: Code formatting
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Composer packages
uses: actions/cache@v4
with:
path: vendor
key: php-${{ hashFiles('**/composer.lock') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run Pint
run: composer format
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "fix: apply code styling rules"