aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-06-20 12:12:56 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-06-21 09:20:50 +0200
commit45ecd55d89ec61771ebaf454f896344197b5cbe2 (patch)
tree9fc31a99f970e69ce8095cbb434e7d1031a2f0b9 /.github
parent70ee8de0aba8eb3467919e0b2491af8be8869e77 (diff)
downloadnextcloud-server-45ecd55d89ec61771ebaf454f896344197b5cbe2.tar.gz
nextcloud-server-45ecd55d89ec61771ebaf454f896344197b5cbe2.zip
feat: prepare jest coverage support
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/node-tests.yml13
1 files changed, 9 insertions, 4 deletions
diff --git a/.github/workflows/node-tests.yml b/.github/workflows/node-tests.yml
index a3710249866..fad74c4e396 100644
--- a/.github/workflows/node-tests.yml
+++ b/.github/workflows/node-tests.yml
@@ -25,8 +25,8 @@ jobs:
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1
id: versions
with:
- fallbackNode: '^12'
- fallbackNpm: '^6'
+ fallbackNode: '^16'
+ fallbackNpm: '^7'
test:
runs-on: ubuntu-latest
@@ -47,8 +47,13 @@ jobs:
- name: Install dependencies
run: npm ci
- - name: Test
- run: npm run test
+ - name: Test and process coverage
+ run: npm run test:coverage
+
+ - name: Collect coverage
+ uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
+ with:
+ files: ./coverage/lcov.info
jsunit:
runs-on: ubuntu-latest