10
10
jobs :
11
11
12
12
tests-coverage :
13
- name : Tests on PHP 8.0 (code coverage)
13
+ name : Tests on PHP 8.2 (code coverage)
14
14
runs-on : " ubuntu-latest"
15
15
steps :
16
16
- name : Checkout
17
- uses : actions/checkout@v2
17
+ uses : actions/checkout@v3
18
18
- name : Setup PHP
19
19
uses : shivammathur/setup-php@v2
20
20
with :
21
- php-version : ' 8.0 '
21
+ php-version : ' 8.2 '
22
22
coverage : xdebug
23
23
tools : composer:v2
24
24
env :
25
25
fail-fast : true
26
26
- name : Get composer cache directory
27
27
id : composer-cache
28
- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
28
+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
29
29
- name : Cache dependencies
30
- uses : actions/cache@v2
30
+ uses : actions/cache@v3
31
31
with :
32
32
path : ${{ steps.composer-cache.outputs.dir }}
33
33
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
37
37
- name : Create code coverage
38
38
run : vendor/bin/phpunit --testdox --verbose --coverage-xml=build/coverage --coverage-clover=build/coverage/clover.xml --log-junit=build/coverage/junit.xml
39
39
- name : Store code coverage
40
- uses : actions/upload-artifact@v2
40
+ uses : actions/upload-artifact@v3
41
41
with :
42
42
name : code-coverage
43
43
path : build/coverage
@@ -48,28 +48,28 @@ jobs:
48
48
runs-on : " ubuntu-latest"
49
49
steps :
50
50
- name : Checkout
51
- uses : actions/checkout@v2
51
+ uses : actions/checkout@v3
52
52
- name : Setup PHP
53
53
uses : shivammathur/setup-php@v2
54
54
with :
55
- php-version : ' 8.0 '
55
+ php-version : ' 8.2 '
56
56
coverage : none
57
- tools : composer:v2,infection
57
+ tools : composer:v2, infection
58
58
env :
59
59
fail-fast : true
60
60
- name : Get composer cache directory
61
61
id : composer-cache
62
- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
62
+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
63
63
- name : Cache dependencies
64
- uses : actions/cache@v2
64
+ uses : actions/cache@v3
65
65
with :
66
66
path : ${{ steps.composer-cache.outputs.dir }}
67
67
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
68
68
restore-keys : ${{ runner.os }}-composer-
69
69
- name : Install project dependencies
70
70
run : composer upgrade --no-interaction --no-progress --prefer-dist
71
71
- name : Obtain code coverage
72
- uses : actions/download-artifact@v2
72
+ uses : actions/download-artifact@v3
73
73
with :
74
74
name : code-coverage
75
75
path : build/coverage
@@ -87,15 +87,15 @@ jobs:
87
87
id : check-secrets
88
88
run : |
89
89
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
90
- echo "::set-output name= github:: yes"
90
+ echo "github= yes" >> $GITHUB_OUTPUT
91
91
else
92
- echo "::set-output name= github:: no"
92
+ echo "github= no" >> $GITHUB_OUTPUT
93
93
echo "::warning ::GITHUB_TOKEN non set"
94
94
fi
95
95
if [ -n "${{ secrets.SONAR_TOKEN }}" ]; then
96
- echo "::set-output name= sonar:: yes"
96
+ echo "sonar= yes" >> $GITHUB_OUTPUT
97
97
else
98
- echo "::set-output name= sonar:: no"
98
+ echo "sonar= no" >> $GITHUB_OUTPUT
99
99
echo "::warning ::SONAR_TOKEN non set"
100
100
fi
101
101
@@ -106,28 +106,28 @@ jobs:
106
106
runs-on : " ubuntu-latest"
107
107
steps :
108
108
- name : Checkout
109
- uses : actions/checkout@v2
109
+ uses : actions/checkout@v3
110
110
- name : Unshallow clone to provide blame information
111
111
run : git fetch --unshallow
112
112
- name : Setup PHP
113
113
uses : shivammathur/setup-php@v2
114
114
with :
115
- php-version : ' 8.0 '
115
+ php-version : ' 8.2 '
116
116
coverage : none
117
117
tools : composer:v2
118
118
- name : Get composer cache directory
119
119
id : composer-cache
120
- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
120
+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
121
121
- name : Cache dependencies
122
- uses : actions/cache@v2
122
+ uses : actions/cache@v3
123
123
with :
124
124
path : ${{ steps.composer-cache.outputs.dir }}
125
125
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
126
126
restore-keys : ${{ runner.os }}-composer-
127
127
- name : Install project dependencies
128
128
run : composer upgrade --no-interaction --no-progress --prefer-dist
129
129
- name : Obtain code coverage
130
- uses : actions/download-artifact@v2
130
+ uses : actions/download-artifact@v3
131
131
with :
132
132
name : code-coverage
133
133
path : build/coverage
0 commit comments