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