-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (34 loc) · 1.37 KB
/
ci.yml
File metadata and controls
43 lines (34 loc) · 1.37 KB
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
name: CI
on:
push:
branches: [ master ]
paths-ignore:
- README.md
pull_request:
paths-ignore:
- README.md
jobs:
analysis:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
php: [8.3]
steps:
- uses: actions/checkout@v2
- name: Composer - Update dependencies
run: composer update --no-progress
id: end-of-setup
- name: PHPStan - Run
run: if [ -f ruleset/phpstan.neon ]; then vendor/bin/phpstan analyse -c ruleset/phpstan.neon src/ ; else echo PHPStan ruleset file does not exist, skipping step ; fi
if: always() && steps.end-of-setup.outcome == 'success'
- name: PHPSpec - Run
run: if [ -f phpspec.yml.dist ]; then vendor/bin/phpspec run ; else echo PHPSpec config file does not exist, skipping step ; fi
if: always() && steps.end-of-setup.outcome == 'success'
- name: PHPMD - Run
run: if [ -f ruleset/.php_md.xml ]; then vendor/bin/phpmd src ansi ruleset/.php_md.xml ; else echo PHPMD config file does not exist, skipping step ; fi
if: always() && steps.end-of-setup.outcome == 'success'
- name: GrumPHP - Run
run: (test -f grumphp.yml && vendor/bin/grumphp run) || echo Grumphp ruleset file does not exist, skipping step
if: always() && steps.end-of-setup.outcome == 'success'