forked from DataLinx/php-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 778 Bytes
/
linter.yml
File metadata and controls
33 lines (26 loc) · 778 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
name: Code linting
on:
# Run linting on all push events that have committed changes in PHP files
push:
paths:
- '**.php'
# Make it possible to run the workflow manually
workflow_dispatch:
jobs:
phplint:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Run Laravel Pint
uses: aglipanci/laravel-pint-action@latest
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: fix code style"