File tree Expand file tree Collapse file tree 5 files changed +84
-1
lines changed Expand file tree Collapse file tree 5 files changed +84
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : " Mutation Tests"
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - " 1.x"
8
+ schedule :
9
+ - cron : ' * 8 * * *'
10
+
11
+ jobs :
12
+ compatibility :
13
+ name : " Mutation Tests"
14
+
15
+ runs-on : ${{ matrix.operating-system }}
16
+
17
+ strategy :
18
+ matrix :
19
+ dependencies :
20
+ - " locked"
21
+ php-version :
22
+ - " 7.4"
23
+ operating-system :
24
+ - " ubuntu-latest"
25
+
26
+ steps :
27
+ - name : " Checkout"
28
+ uses : " actions/checkout@v2"
29
+
30
+ - name : " Install PHP"
31
+ uses : " shivammathur/setup-php@v2"
32
+ with :
33
+ coverage : " pcov"
34
+ php-version : " ${{ matrix.php-version }}"
35
+ ini-values : memory_limit=-1
36
+
37
+ - name : " Cache dependencies"
38
+ uses : " actions/cache@v2"
39
+ with :
40
+ path : |
41
+ ~/.composer/cache
42
+ vendor
43
+ key : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
44
+ restore-keys : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
45
+
46
+ - name : " Install lowest dependencies"
47
+ if : ${{ matrix.dependencies == 'lowest' }}
48
+ run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
49
+
50
+ - name : " Install highest dependencies"
51
+ if : ${{ matrix.dependencies == 'highest' }}
52
+ run : " composer update --no-interaction --no-progress --no-suggest"
53
+
54
+ - name : " Install locked dependencies"
55
+ if : ${{ matrix.dependencies == 'locked' }}
56
+ run : " composer install --no-interaction --no-progress --no-suggest"
57
+
58
+ - name : " Mutation Tests"
59
+ run : " composer test:mutation"
Original file line number Diff line number Diff line change 4
4
<phar name =" phpstan" version =" ^0.12.32" installed =" 0.12.32" location =" ./tools/phpstan" copy =" true" />
5
5
<phar name =" roave/backwardcompatibilitycheck" version =" ^5.0.0" installed =" 5.0.0" location =" ./tools/roave-backward-compatibility-check" copy =" true" />
6
6
<phar name =" psalm" version =" ^3.12.2" installed =" 3.12.2" location =" ./tools/psalm" copy =" true" />
7
+ <phar name =" infection" version =" ^0.16.4" installed =" 0.16.4" location =" ./tools/infection" copy =" true" />
7
8
</phive >
Original file line number Diff line number Diff line change 51
51
"test" : [
52
52
" phpunit"
53
53
],
54
+ "test:mutation" : [
55
+ " tools/infection"
56
+ ],
54
57
"static:analyze" : [
55
58
" tools/psalm --shepherd --stats" ,
56
59
" tools/phpstan analyze -c phpstan.neon" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "timeout" : 5 ,
3
+ "source" : {
4
+ "directories" : [
5
+ " src"
6
+ ]
7
+ },
8
+ "logs" : {
9
+ "text" : " var/logs/infection.log" ,
10
+ "summary" : " var/logs/infection_summary.log" ,
11
+ "debug" : " var/logs/infection_summary.log"
12
+ },
13
+ "minMsi" : 65 ,
14
+ "minCoveredMsi" : 70 ,
15
+ "mutators" : {
16
+ "@default" : true
17
+ },
18
+ "testFramework" : " phpunit" ,
19
+ "bootstrap" : " ./vendor/autoload.php"
20
+ }
Original file line number Diff line number Diff line change 10
10
<log type =" coverage-html" target =" var/phpunit/coverage/html" lowUpperBound =" 80" highLowerBound =" 100" />
11
11
</logging >
12
12
<testsuites >
13
- <testsuite name =" PHP Matcher Test Suite " >
13
+ <testsuite name =" unit " >
14
14
<directory >./tests/</directory >
15
15
</testsuite >
16
16
</testsuites >
You can’t perform that action at this time.
0 commit comments