-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (36 loc) · 1.31 KB
/
analysis.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Code analysis
on:
pull_request:
workflow_dispatch:
jobs:
tests:
name: PHPUnit tests
runs-on: ubuntu-latest
steps:
- uses: shivammathur/[email protected]
with:
php-version: '7.2'
- uses: actions/checkout@v2
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --dev
- name: Run PHPUnit
run: composer run phpunit
static-analysis:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: shivammathur/[email protected]
with:
php-version: '7.2'
tools: composer, cs2pr
- uses: actions/checkout@v2
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --dev
- name: Run PHP Code Sniffer
run: composer run phpcs-github | cs2pr
- name: Run PHP Mess Detector
run: composer run phpmd-github
if: ${{ always() }}
- name: Run PHPStan
run: composer run phpstan
if: ${{ always() }}