Skip to content

Commit 997ba5d

Browse files
authored
Added PHPUnit&JS Codecov tests, CI&CD adjustments (#44)
* Added some PHP Unit tests * [CI&CD]: Fix path to phpunit.unit.xml config file * [CI&CD]: Added Codecov coverage * [CI&CD]: Codecov tests * [CI&CD]: Adjust codecov paths fixes * [CI&CD]: Changed nextcloud server checkout to download with caching * [CI&CD]: Workflow fixes * Added some tests * [CI&CD]: Fix integration tests run command * php-cs fixes
1 parent c94bc1f commit 997ba5d

31 files changed

+2595
-79
lines changed

.codecov.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,32 @@ coverage:
1313
target: auto
1414
threshold: 2%
1515

16+
flag_management:
17+
individual_flags:
18+
- name: python_backend
19+
paths:
20+
- nc_py_api/
21+
statuses:
22+
- type: project
23+
target: auto
24+
threshold: 2%
25+
- name: php_backend
26+
paths:
27+
- lib/
28+
statuses:
29+
- type: project
30+
target: auto
31+
threshold: 2%
32+
- name: frontend
33+
paths:
34+
- src/
35+
statuses:
36+
- type: project
37+
target: auto
38+
threshold: 2%
39+
1640
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"
1744
- "apps/cloud_py_api/::"

.github/workflows/py_analysis-coverage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ jobs:
121121
with:
122122
token: ${{ secrets.CODECOV_TOKEN }}
123123
file: apps/${{ env.APP_NAME }}/coverage.xml
124+
flags: python_backend
124125
fail_ci_if_error: true
125126
verbose: true
126127

@@ -212,6 +213,7 @@ jobs:
212213
with:
213214
token: ${{ secrets.CODECOV_TOKEN }}
214215
file: apps/${{ env.APP_NAME }}/coverage.xml
216+
flags: python_backend
215217
fail_ci_if_error: true
216218
verbose: true
217219

@@ -303,6 +305,7 @@ jobs:
303305
with:
304306
token: ${{ secrets.CODECOV_TOKEN }}
305307
file: apps/${{ env.APP_NAME }}/coverage.xml
308+
flags: python_backend
306309
fail_ci_if_error: true
307310
verbose: true
308311

@@ -383,6 +386,7 @@ jobs:
383386
with:
384387
token: ${{ secrets.CODECOV_TOKEN }}
385388
file: apps/${{ env.APP_NAME }}/coverage.xml
389+
flags: python_backend
386390
fail_ci_if_error: true
387391
verbose: true
388392

@@ -467,5 +471,6 @@ jobs:
467471
with:
468472
token: ${{ secrets.CODECOV_TOKEN }}
469473
file: apps/${{ env.APP_NAME }}/coverage.xml
474+
flags: python_backend
470475
fail_ci_if_error: true
471476
verbose: true

0 commit comments

Comments
 (0)