xref: /webtrees/.github/workflows/phpcs.yaml (revision 00b1984e374faddab4698e73088f0c964e529b65)
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@v1
12        with:
13          fetch-depth: 1
14
15      - run: composer global require squizlabs/php_codesniffer=* --quiet
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