-
Notifications
You must be signed in to change notification settings - Fork 519
42 lines (36 loc) · 972 Bytes
/
coding-standards.yml
File metadata and controls
42 lines (36 loc) · 972 Bytes
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
38
39
40
41
42
name: Fix code styling
on:
workflow_dispatch:
inputs:
php:
default: '8.5'
description: The PHP version to use
type: string
message:
default: Fix code styling
description: The commit message to use
type: string
fix:
default: true
description: Whether to fix the code styling
type: boolean
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.php }}
tools: composer:v2, laravel/pint
extensions: json, dom, curl, libxml, mbstring
coverage: none
- name: Run Pint
run: pint
- name: Commit linted files
if: ${{ inputs.fix }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: ${{ inputs.message }}