forked from chimeric/dokuwiki-plugin-backlinks
-
-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (24 loc) · 1009 Bytes
/
phpCS.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: PHP Code Style
on: [push, workflow_dispatch]
jobs:
phpcs:
name: PHP CodeSniffer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: cs2pr, phpcs
- name: retrieve script
run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh
- name: Install DokuWiki
env:
CI_SERVER: 1
DOKUWIKI : master
run: sh travis.sh
# - name: run PHP codesniffer
# run: php phpcs -v --runtime-set ignore_warnings_on_exit true --standard=_test/phpcs.xml lib/plugins/backlinks
- name: run PHP codesniffer
run: phpcs -q --standard=_test/phpcs_MigrationAdjustments.xml --report=checkstyle --runtime-set ignore_warnings_on_exit lib/plugins/backlinks | cs2pr