Skip to content

Commit ecee7fc

Browse files
authored
Ci: fixing codecov (#50)
* removed not needed statuses and path fixes * added `fail_ci_if_error` flag to codecov action * removed not needed `phpunit-summary`
1 parent 7325eb0 commit ecee7fc

File tree

2 files changed

+5
-27
lines changed

2 files changed

+5
-27
lines changed

.codecov.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,12 @@ flag_management:
1818
- name: python_backend
1919
paths:
2020
- nc_py_api/
21-
statuses:
22-
- type: project
23-
target: auto
24-
threshold: 2%
2521
- name: php_backend
2622
paths:
2723
- lib/
28-
statuses:
29-
- type: project
30-
target: auto
31-
threshold: 2%
3224
- name: frontend
3325
paths:
3426
- src/
35-
statuses:
36-
- type: project
37-
target: auto
38-
threshold: 2%
3927

4028
fixes:
41-
- "apps/cloud_py_api/lib::cloud_py_api/lib"
42-
- "apps/cloud_py_api/nc_py_api::cloud_py_api/nc_py_api"
43-
- "apps/cloud_py_api/src::cloud_py_api/src"
4429
- "apps/cloud_py_api/::"

.github/workflows/test.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ jobs:
116116
file: apps/${{ env.APP_NAME }}/tests/coverage/php/unit/clover.xml
117117
flags: php_backend
118118
verbose: true
119+
fail_ci_if_error: true
119120

120121
- name: Check PHPUnit integration config file existence
121122
id: check_integration
@@ -153,6 +154,7 @@ jobs:
153154
file: apps/${{ env.APP_NAME }}/tests/coverage/php/integration/clover.xml
154155
flags: php_backend
155156
verbose: true
157+
fail_ci_if_error: true
156158

157159
phpunit-pgsql:
158160
runs-on: ubuntu-latest
@@ -251,6 +253,7 @@ jobs:
251253
file: apps/${{ env.APP_NAME }}/tests/coverage/php/unit/clover.xml
252254
flags: php_backend
253255
verbose: true
256+
fail_ci_if_error: true
254257

255258
- name: Check PHPUnit integration config file existence
256259
id: check_integration
@@ -293,18 +296,7 @@ jobs:
293296
file: apps/${{ env.APP_NAME }}/tests/coverage/php/integration/clover.xml
294297
flags: php_backend
295298
verbose: true
296-
297-
phpunit-summary:
298-
runs-on: ubuntu-latest
299-
needs: [phpunit-mysql, phpunit-pgsql]
300-
301-
if: always()
302-
303-
name: phpunit-summary
304-
305-
steps:
306-
- name: PHPUnit summary status
307-
run: if ${{ needs.phpunit-mysql.result != 'success' || needs.phpunit-pgsql.result != 'success' }}; then exit 1; fi
299+
fail_ci_if_error: true
308300

309301
js-unit:
310302
runs-on: ubuntu-latest
@@ -342,3 +334,4 @@ jobs:
342334
file: apps/${{ env.APP_NAME }}/tests/coverage/javascript/clover.xml
343335
flags: frontend
344336
verbose: true
337+
fail_ci_if_error: true

0 commit comments

Comments
 (0)