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