Skip to content

Commit c255bea

Browse files
authored
Add pint workflow (#49)
1 parent 35aa3c6 commit c255bea

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/pint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Pint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
pint:
11+
name: Pint
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Set up PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: 8.4
22+
tools: composer:v2
23+
coverage: none
24+
25+
- name: Install Laravel Pint
26+
run: composer global require laravel/pint
27+
28+
- name: Run Laravel Pint
29+
run: ~/.composer/vendor/bin/pint --test

pint.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"preset": "laravel",
3+
"rules": {
4+
"concat_space": false,
5+
"new_with_parentheses": {
6+
"anonymous_class": false
7+
},
8+
"not_operator_with_successor_space": false,
9+
"single_line_comment_spacing": false
10+
}
11+
}

0 commit comments

Comments
 (0)