Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit committed Mar 19, 2024
1 parent e3487bd commit 4d9bdea
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
name: Check & Fix Styling with Pint
name: Lint with Pint

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_call:
workflow_dispatch:

jobs:
pint:
name: Run Pint
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Run Pint
uses: aglipanci/[email protected]
uses: aglipanci/laravel-pint-action@latest
with:
verboseMode: true

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: apply Pint"
19 changes: 19 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"preset": "laravel",
"rules": {
"no_superfluous_phpdoc_tags": true,
"concat_space": {
"spacing": "one"
},
"single_quote": true,
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,
"explicit_string_variable": true,
"global_namespace_import": true,
"single_trait_insert_per_statement": true,
"ordered_traits": true,
"types_spaces": {
"space": "single"
}
}
}

0 comments on commit 4d9bdea

Please sign in to comment.