Skip to content

Commit

Permalink
Run pint on PRs as well as branches
Browse files Browse the repository at this point in the history
  • Loading branch information
LouiseMcMahon committed Jan 28, 2025
1 parent fc994e7 commit 55f94fb
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches-ignore:
- main
pull_request:
branches:
- main

jobs:
lint:
Expand All @@ -25,11 +28,16 @@ jobs:
coverage: none

- name: Install Pint
run: composer global require laravel/pint
run: composer install --dev

- name: Run Pint
run: composer run lint
if: github.event_name == 'pull_request'

- name: Run Pint
run: pint
run: composer run lint:fix
if: github.event_name == 'push'

- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v5

if: github.event_name == 'push'

0 comments on commit 55f94fb

Please sign in to comment.