-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.17 KB
/
Copy pathphp.yml
File metadata and controls
38 lines (36 loc) · 1.17 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
name: PHP CI
on:
push:
branches: [ dev, master ]
pull_request:
branches: [ dev, master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Validate composer.json and composer.lock
run: composer validate
phpunit:
runs-on: ubuntu-latest
name: PHP Unit checks
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Execute tests via PHPUnit
run: vendor/bin/phpunit --configuration phpunit.xml
phpinsights:
runs-on: ubuntu-latest
name: PHP Insights checks
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Execute phpinsights
run: vendor/bin/phpinsights -n --ansi --format=github-action --min-quality=80 --min-complexity=90 --min-architecture=75 --min-style=95