File tree Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Merge Coverage"
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ unit :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : shivammathur/setup-php@v2
10
+ with :
11
+ php-version : ' 8.1'
12
+ tools : composer, phpunit:10
13
+ coverage : xdebug
14
+ env :
15
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
16
+ - run : composer install
17
+ - run : phpunit --testsuite unit --coverage-php reports/unit.php
18
+ - uses : actions/cache/save@v4
19
+ with :
20
+ path : reports
21
+ key : reports-unit-${{ github.run_id }}
22
+
23
+ integration :
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - uses : shivammathur/setup-php@v2
27
+ with :
28
+ php-version : ' 8.1'
29
+ tools : composer, phpunit:10
30
+ coverage : xdebug
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ - run : composer install
34
+ - run : phpunit --testsuite integration --coverage-php reports/integration.php
35
+ - uses : actions/cache/save@v4
36
+ with :
37
+ path : reports
38
+ key : reports-integration-${{ github.run_id }}
39
+
40
+ coverage :
41
+ runs-on : ubuntu-latest
42
+ needs : [integration, unit]
43
+
44
+ steps :
45
+ - uses : actions/cache/restore@v4
46
+ with :
47
+ path : reports
48
+ key : reports-unit-${{ github.run_id }}
49
+ - uses : actions/cache/restore@v4
50
+ with :
51
+ path : reports
52
+ key : reports-integration-${{ github.run_id }}
53
+
54
+ - uses : shivammathur/setup-php@v2
55
+ with :
56
+ php-version : ' 8.1'
57
+ tools : composer, phpunit:10
58
+ coverage : xdebug
59
+ env :
60
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61
+ - run : composer install
62
+ - run : php bin/merge-coverage.php
63
+
64
+
Original file line number Diff line number Diff line change 1
1
# ## MacOs ###
2
2
.DS_Store
3
3
4
+ # ## PhpStorm ###
5
+ /.idea
6
+
4
7
# ## Composer ###
5
8
composer.lock
6
9
composer.phar
@@ -13,3 +16,4 @@ composer.phar
13
16
/reports
14
17
! /reports /.keep
15
18
/coverage
19
+
You can’t perform that action at this time.
0 commit comments