Skip to content

Commit

Permalink
fix: update PHP linting workflow to use Laravel Pint (master)
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 12, 2025
1 parent a4ee13b commit 1fad986
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,29 @@ jobs:
php-lint:
needs: build-assets
if: ${{ always() && needs.build-assets.result == 'success' }}
uses: tastyigniter/workflows/.github/workflows/php-lint.yml@main
with:
commit-file-pattern: '/'
composer: update --no-interaction --no-progress
name: PHP Linting (Pint)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer:v2
coverage: none

- name: Install composer dependencies
run: composer update --no-interaction --no-progress

- name: Run Laravel Pint
run: composer format

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: PHP Linting (Pint) - Fix styling
php-tests:
name: 'PHP Tests ${{ matrix.target }}'
needs: php-lint
Expand Down

0 comments on commit 1fad986

Please sign in to comment.