chore: add UploadCoverageReport.yml (#1599)

This commit is contained in:
Piotr Idzik
2024-01-27 17:58:12 +01:00
committed by GitHub
parent 0e5cf5e843
commit 1d63400867
5 changed files with 1012 additions and 1578 deletions

View File

@ -0,0 +1,33 @@
---
name: UploadCoverageReport
'on':
workflow_dispatch:
push:
branches:
- master
pull_request:
jobs:
UploadCoverageReport:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Generate coverage report
run: npm test -- --coverage
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
files: "coverage/coverage-final.json"
fail_ci_if_error: true
...