@@ -2,10 +2,10 @@ name: PHP Tests
2
2
on : [push, pull_request]
3
3
4
4
jobs :
5
- php :
5
+ phpunit :
6
6
runs-on : ubuntu-latest
7
7
continue-on-error : ${{ matrix.experimental }}
8
- name : " PHP-${{ matrix.php-versions }}: CS/PHPStan/ PHPUnit"
8
+ name : " PHP-${{ matrix.php-versions }}: PHPUnit"
9
9
strategy :
10
10
matrix :
11
11
php-versions : ['7.3', '7.4']
@@ -21,27 +21,64 @@ jobs:
21
21
uses : shivammathur/setup-php@v2
22
22
with :
23
23
php-version : ${{ matrix.php-versions }}
24
- tools : cs2pr, phpcs, phpstan, phpunit
24
+ tools : phpunit
25
25
extensions : redis
26
26
27
27
- name : Setup problem matchers for PHP
28
28
run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
29
29
30
- - name : Run PHPCS
31
- continue-on-error : true
32
- run : phpcs -q --report=checkstyle lib | cs2pr
33
-
34
30
- name : Install dependencies
35
31
run : composer install
36
32
37
- - name : Run PHPStan
38
- run : phpstan analyse lib -l1
39
-
40
33
- name : Install redis
41
34
run : sudo apt-get install -y redis-server
42
35
43
36
- name : Setup problem matchers for PHPUnit
44
37
run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
45
38
46
39
- name : Run PHPunit
47
- run : phpunit --configuration phpunit.xml.dist
40
+ run : phpunit --configuration phpunit.xml.dist
41
+
42
+ phpcs :
43
+ runs-on : ubuntu-latest
44
+ continue-on-error : true
45
+ name : " PHPCS"
46
+ steps :
47
+ - name : Checkout
48
+ uses : actions/checkout@v2
49
+
50
+ - name : Setup PHPCS
51
+ uses : shivammathur/setup-php@v2
52
+ with :
53
+ php-version : ' 7.4'
54
+ tools : cs2pr, phpcs
55
+
56
+ - name : Setup problem matchers for PHP
57
+ run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
58
+
59
+ - name : Run PHPCS
60
+ run : phpcs -q --report=checkstyle lib | cs2pr
61
+
62
+ phpstan :
63
+ runs-on : ubuntu-latest
64
+ continue-on-error : false
65
+ name : " PHPStan"
66
+ steps :
67
+ - name : Checkout
68
+ uses : actions/checkout@v2
69
+
70
+ - name : Setup PHPStan
71
+ uses : shivammathur/setup-php@v2
72
+ with :
73
+ php-version : ' 7.4'
74
+ tools : phpstan
75
+
76
+ - name : Setup problem matchers for PHP
77
+ run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
78
+
79
+ - name : Install dependencies
80
+ run : composer install
81
+
82
+ - name : Run PHPStan
83
+ run : phpstan analyse lib -l1
84
+
0 commit comments