File tree Expand file tree Collapse file tree 3 files changed +75
-7
lines changed Expand file tree Collapse file tree 3 files changed +75
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : Unit Tests
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ schedule :
7
+ - cron : ' 0 0 * * *'
8
+
9
+ jobs :
10
+ php-tests :
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ matrix :
15
+ php : [8.1]
16
+
17
+ name : PHP Code Coverage
18
+
19
+ steps :
20
+ - name : Checkout code
21
+ uses : actions/checkout@v1
22
+
23
+ - name : Setup PHP
24
+ uses : shivammathur/setup-php@v2
25
+ with :
26
+ php-version : 8.1
27
+ extensions : mbstring
28
+ coverage : pcov
29
+
30
+ - name : Install dependencies
31
+ run : |
32
+ composer update --prefer-dist --no-interaction --no-suggest --with-all-dependencies
33
+
34
+ - name : Check Code Coverage
35
+ run : vendor/bin/phpunit --verbose --coverage-text --coverage-clover=clover.xml --coverage-html=coverage
36
+
37
+ - uses : actions/upload-artifact@v2
38
+ with :
39
+ name : coverage
40
+ path : coverage
Original file line number Diff line number Diff line change
1
+ name : Unit Tests
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ schedule :
7
+ - cron : ' 0 0 * * *'
8
+
9
+ jobs :
10
+ php-tests :
11
+ runs-on : ubuntu-latest
12
+
13
+ name : PHPUnit Matcher
14
+
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v1
18
+
19
+ - name : Setup PHP
20
+ uses : shivammathur/setup-php@v2
21
+ with :
22
+ php-version : 8.1
23
+ extensions : mbstring
24
+
25
+ - name : Configure matchers
26
+ uses : mheap/phpunit-matcher-action@v1
27
+
28
+ - name : Install dependencies
29
+ run : |
30
+ composer update --prefer-dist --no-interaction --no-suggest --with-all-dependencies
31
+
32
+ - name : Execute Unit Tests
33
+ run : vendor/bin/phpunit --teamcity
Original file line number Diff line number Diff line change 35
35
with :
36
36
php-version : ${{ matrix.php }}
37
37
extensions : mbstring
38
- coverage : pcov
39
38
40
39
- name : Configure matchers
41
40
uses : mheap/phpunit-matcher-action@v1
@@ -46,16 +45,12 @@ jobs:
46
45
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest --with-all-dependencies
47
46
48
47
- name : Execute Unit Tests
49
- run : vendor/bin/phpunit --teamcity
48
+ run : composer test
50
49
51
50
- name : Analyse with PHPStan
52
51
run : composer analyse
53
52
if : matrix.os == 'ubuntu-latest' && matrix.symfony != '4.x'
54
53
55
54
- name : Check PSR-12 Codestyle
56
55
run : composer test
57
- if : matrix.os == 'ubuntu-latest'
58
-
59
- - name : Check Code Coverage
60
- run : vendor/bin/phpunit --verbose --coverage-text
61
- if : matrix.dependency-version == 'prefer-stable' && matrix.php == '8.1'
56
+ if : matrix.os == 'ubuntu-latest'
You can’t perform that action at this time.
0 commit comments