@@ -31,21 +31,21 @@ jobs:
31
31
php-version : ['7.4', '8.0', '8.1', '8.2', '8.3']
32
32
include :
33
33
- php-version : ' 7.4'
34
- sf-version : ' 5.4.* '
34
+ sf-version : ' 5.4'
35
35
- php-version : ' 8.0'
36
- sf-version : ' 6.0.* '
36
+ sf-version : ' 6.0'
37
37
- php-version : ' 8.1'
38
- sf-version : ' 6.0.* '
38
+ sf-version : ' 6.0'
39
39
- php-version : ' 8.1'
40
- sf-version : ' 6.1.* '
40
+ sf-version : ' 6.1'
41
41
- php-version : ' 8.2'
42
- sf-version : ' 6.2.* '
42
+ sf-version : ' 6.2'
43
43
- php-version : ' 8.3'
44
- sf-version : ' 6.3.* '
44
+ sf-version : ' 6.3'
45
45
- php-version : ' 8.3'
46
- sf-version : ' 6.4.* '
46
+ sf-version : ' 6.4'
47
47
- php-version : ' 8.3'
48
- sf-version : ' 7.0.* '
48
+ sf-version : ' 7.0'
49
49
50
50
name : integration-tests (PHP ${{ matrix.php-version }}) (Symfony ${{ matrix.sf-version }})
51
51
steps :
@@ -59,17 +59,19 @@ jobs:
59
59
run : composer validate
60
60
- name : Install dependencies
61
61
env :
62
- SYMFONY_REQUIRE : ${{ matrix.sf-version }}
62
+ SYMFONY_REQUIRE : ' ${{ matrix.sf-version }}.* '
63
63
run : composer install --prefer-dist --no-progress
64
- - name : " Remove doctrine/annotations"
64
+ - name : Remove doctrine/annotations
65
65
if : matrix.php-version != '7.4'
66
66
run : |
67
67
composer remove --dev doctrine/annotations
68
68
- name : Run test suite
69
- run : composer test:unit
70
- - name : Run code coverage
71
- run : vendor/bin/simple-phpunit --colors=always --coverage-clover coverage.xml
72
- if : ${{ matrix.php-version == '8.3' && startsWith(matrix.sf-version, '7.0') }}
69
+ run : composer test:unit -- --coverage-clover coverage.xml
70
+ - name : Upload coverage file
71
+ uses : actions/upload-artifact@v3
72
+ with :
73
+ name : ' phpunit-${{ matrix.php-version }}-${{ matrix.sf-version }}-coverage'
74
+ path : ' coverage.xml'
73
75
74
76
code-style :
75
77
runs-on : ubuntu-latest
@@ -109,3 +111,25 @@ jobs:
109
111
uses : ibiqlik/action-yamllint@v3
110
112
with :
111
113
config_file : .yamllint.yml
114
+
115
+ upload_coverage :
116
+ name : Upload coverage to Codecov
117
+ runs-on : ubuntu-latest
118
+ needs :
119
+ - integration-tests
120
+
121
+ steps :
122
+ - name : Checkout
123
+ uses : actions/checkout@v4
124
+ with :
125
+ fetch-depth : 2
126
+
127
+ - name : Download coverage files
128
+ uses : actions/download-artifact@v3
129
+ with :
130
+ path : reports
131
+
132
+ - name : Upload to Codecov
133
+ uses : codecov/codecov-action@v3
134
+ with :
135
+ directory : reports
0 commit comments