Merge pull request #4166 from dokuwiki-translate/lang_update_798_1706297950
[dokuwiki.git] / .github / workflows / phpCS.yml
blob862b378a92c305d87e165d72f92667f17a83cbf3
1 name: PHP Code Style
3 on:
4   push:
5     branches-ignore:
6       - stable
7       - old-stable
8   pull_request:
10 permissions:
11   contents: read  #  to fetch code (actions/checkout)
13 jobs:
14     phpcs:
15         name: PHP CodeSniffer
16         runs-on: ubuntu-latest
17         if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
18         steps:
19             - uses: actions/checkout@v3
20               with:
21                   fetch-depth: 0
23             - name: Setup PHP
24               uses: shivammathur/setup-php@v2
25               with:
26                   php-version: '8.2'
28             - name: run PHP codesniffer
29               run: |
30                 cd _test
31                 composer install --no-interaction --no-progress --no-suggest --prefer-dist
32                 composer run check