-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (26 loc) · 988 Bytes
/
phpmd.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
name: PHPmd
on:
push:
workflow_dispatch:
pull_request:
branches: [main]
jobs:
phpmd:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: ["ubuntu-latest"]
php-versions: ["8.2","8.3"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
- uses: php-actions/composer@8a65f0d3c6a1d17ca4800491a40b5756a4c164f3 # v6 # or alternative dependency management
- run: ./vendor/bin/phpmd app html phpmd.ruleset.xml --report-file result.html
- run: ./vendor/bin/phpmd app xml phpmd.ruleset.xml --report-file result.xml
- run: ./vendor/bin/phpmd app github phpmd.ruleset.xml