From 89c60280ba8a2fc36b1df4d8022a04a94d40a899 Mon Sep 17 00:00:00 2001 From: Sergey Linnik Date: Thu, 10 Oct 2024 13:40:12 +0300 Subject: [PATCH] php-laravel: lint --- .github/workflows/lint-php-laravel.yml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/lint-php-laravel.yml diff --git a/.github/workflows/lint-php-laravel.yml b/.github/workflows/lint-php-laravel.yml new file mode 100644 index 00000000..8b8eba4d --- /dev/null +++ b/.github/workflows/lint-php-laravel.yml @@ -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