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