File tree 4 files changed +175
-260
lines changed
4 files changed +175
-260
lines changed Original file line number Diff line number Diff line change 6
6
strategy :
7
7
matrix :
8
8
php-version :
9
- - ' 7.4'
10
- - ' 8.0'
11
9
- ' 8.1'
12
10
13
11
name : PHP ${{ matrix.php-version }}
50
48
- name : Setup PHP, with composer and extensions
51
49
uses : shivammathur/setup-php@v2
52
50
with :
53
- php-version : 7.4
51
+ php-version : 8.1
54
52
coverage : none
55
53
tools : cs2pr
56
54
76
74
- name : Setup PHP, with composer and extensions
77
75
uses : shivammathur/setup-php@v2
78
76
with :
79
- php-version : 7.4
77
+ php-version : 8.1
80
78
coverage : none
81
79
82
80
- name : Cache composer dependencies
@@ -97,11 +95,13 @@ jobs:
97
95
steps :
98
96
- name : Checkout
99
97
uses : actions/checkout@v2
98
+ with :
99
+ fetch-depth : 2
100
100
101
101
- name : Setup PHP, with composer and extensions
102
102
uses : shivammathur/setup-php@v2
103
103
with :
104
- php-version : 7.4
104
+ php-version : 8.1
105
105
coverage : pcov
106
106
107
107
- name : Cache composer dependencies
@@ -119,8 +119,8 @@ jobs:
119
119
120
120
- name : Upload code coverage
121
121
run : |
122
- curl -LO https:// scrutinizer-ci.com /ocular.phar
123
- php ocular.phar code-coverage:upload --format=php-clover coverage-clover.xml
122
+ composer global require scrutinizer/ocular
123
+ ~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover coverage-clover.xml
124
124
125
125
release :
126
126
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -12,17 +12,20 @@ coding_style:
12
12
build :
13
13
nodes :
14
14
analysis :
15
+ image : default-bionic
16
+ environment :
17
+ php : 8.1.2
15
18
tests :
16
19
override :
17
20
- php-scrutinizer-run
18
21
19
22
tools :
20
23
external_code_coverage :
21
- timeout : 3600
24
+ timeout : 600
22
25
runs : 1
23
26
24
27
build_failure_conditions :
25
- - ' elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
26
- - ' issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
28
+ - ' elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
29
+ - ' issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
27
30
- ' project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
28
- - ' patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed
31
+ - ' patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed
Original file line number Diff line number Diff line change 24
24
}
25
25
},
26
26
"require" : {
27
- "php" : " ^7.4 || ^8.0 " ,
27
+ "php" : " ^8.1 " ,
28
28
"ext-json" : " *" ,
29
29
"psr/http-server-middleware" : " ^1.0" ,
30
30
"webonyx/graphql-php" : " ^14.11"
You can’t perform that action at this time.
0 commit comments