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