]> BookStack Code Mirror - bookstack/blob - .github/workflows/lint-php.yml
b2f8b3d2b4a96184bea3904fb9ad618c0e86c19c
[bookstack] / .github / workflows / lint-php.yml
1 name: lint-php
2
3 on:
4   push:
5     paths:
6       - '**.php'
7   pull_request:
8     paths:
9       - '**.php'
10
11 jobs:
12   build:
13     if: ${{ github.ref != 'refs/heads/l10n_development' }}
14     runs-on: ubuntu-22.04
15     steps:
16     - uses: actions/checkout@v1
17
18     - name: Setup PHP
19       uses: shivammathur/setup-php@v2
20       with:
21         php-version: 8.1
22         tools: phpcs
23
24     - name: Run formatting check
25       run: composer lint