Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/larasets/stubs/.github/workflows/fix-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ jobs:
paths: ${{ github.event.inputs.paths }}
fix: 'true'

- name: Apply FilaCheck fixes
id: fix-filacheck
if: ${{ hashFiles('app/Filament/**') != '' }}
uses: tomgrv/actions/run-filacheck@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path: app/Filament
fix: 'true'

- name: Apply Pint fixes
id: fix-pint
uses: ./packages/tomgrv/actions/run-pint
Expand All @@ -52,15 +61,14 @@ jobs:

- name: Create or update PR
id: create-pr
if: ${{ steps.fix-phpstan.outputs.has-changes == 'true' || steps.fix-pint.outputs.has-changes == 'true' }}
if: ${{ steps.fix-phpstan.outputs.has-changes == 'true' || steps.fix-filacheck.outputs.has-changes == 'true' || steps.fix-pint.outputs.has-changes == 'true' }}
uses: tomgrv/actions/create-pr@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
head-branch: 'chore/phpinsights-fix-${{ github.run_id }}'
workdir: ${{ github.workspace }}
commit-message: 'chore: apply PHP Insights auto-fixes'
commit-files: ${{ steps.fix-phpstan.outputs.changed-files }},${{ steps.fix-pint.outputs.changed-files }}
head-owner: ${{ github.repository_owner }}
base-branch: ${{ github.event.inputs.base_branch }}
pr-title: 'chore: apply PHP Insights auto-fixes'
Expand Down
7 changes: 7 additions & 0 deletions src/larasets/stubs/.github/workflows/validate-pr-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
paths: app,config,database,resources,routes,tests,modules,packages

- name: Run FilaCheck
if: ${{ hashFiles('app/Filament/**') != '' }}
uses: tomgrv/actions/run-filacheck@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path: app/Filament

- name: Run PHPMD
uses: tomgrv/actions/run-phpmd@v0
with:
Expand Down