xref: /webtrees/.github/workflows/phpcs.yaml (revision 0d047a8c74753c7558a60f4789c838996d6fae8b)
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