-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.23 KB
/
pull-request.yml
File metadata and controls
52 lines (45 loc) · 1.23 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
44
45
46
47
48
49
50
51
52
on: [pull_request]
name: Pull Request CI
jobs:
qa:
name: Quality Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Installing composer dependencies
uses: php-actions/composer@v5
with:
php_version: 7.4
version: 2
php_extensions: zip pcntl
- name: PHP Code Sniffer
run: composer run phpcs
tests:
name: PHP Unit
needs: [qa]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Installing composer dependencies
uses: php-actions/composer@v5
with:
php_version: 7.4
version: 2
php_extensions: zip xdebug pcntl
- name: Creating PHPUnit configuration file
run: cp tests/phpunit.xml.sample tests/phpunit.xml
- name: PHPUnit Tests
uses: php-actions/phpunit@v2
with:
configuration: tests/phpunit.xml
args: --testdox
- name: PHPUnit Coverage
uses: php-actions/phpunit@v2
with:
php_extensions: xdebug
configuration: tests/phpunit.xml
args: --coverage-text --colors=never
env:
XDEBUG_MODE: coverage