Skip to content

Commit

Permalink
php-laravel: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Oct 10, 2024
1 parent 8522e08 commit 89c6028
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/lint-php-laravel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Laravel Pint

on:
workflow_dispatch:
push:
branches: [master, main]
paths: ['web/documentserver-example/php-laravel/**']
pull_request:
branches: [master, main, develop]
paths: ['web/documentserver-example/php-laravel/**']

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.2]
defaults:
run:
working-directory: ./web/documentserver-example/php-laravel
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, dom, curl, libxml, mbstring
coverage: none

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

- name: Run Pint
run: pint --test

0 comments on commit 89c6028

Please sign in to comment.