xref: /webtrees/.github/workflows/phpcs.yaml (revision f9b64f4645b5fb43a1aaed50100ddd750a0b68d8)
1name: Code style
2
3on: [push, pull_request]
4
5jobs:
6  run:
7    if: ${{ !startsWith(github.event.head_commit.message, 'Translation:') }}
8    runs-on: ubuntu-latest
9    name: PHP/PHTML/CSS
10
11    steps:
12      - uses: actions/checkout@v2
13
14      - run: composer validate
15
16      - run: composer global require squizlabs/php_codesniffer
17
18      - name: PHP
19        run: ~/.composer/vendor/bin/phpcs --colors --standard=PSR12 --exclude=Generic.Files.LineLength --extensions=php index.php app modules_v4 tests
20
21      - name: Style sheets
22        run: ~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css
23