xref: /webtrees/.github/workflows/phpcs.yaml (revision bb1ec7dcf21066b641b778b9231f2ee56ad8cc1d)
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: Templates
21        run: ~/.composer/vendor/bin/phpcs --colors --standard=PSR12 -n --exclude=Generic.Files.LineLength --extensions=phtml resources/views
22
23      - name: Style sheets
24        run: ~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css
25