Skip to content

Commit

Permalink
Upload unit test to CodeCov
Browse files Browse the repository at this point in the history
  • Loading branch information
otociulis committed Nov 13, 2024
1 parent 604b783 commit 54bfcf8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,16 @@ jobs:
- name: Run Unit Tests
run: yarn run test:unit

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/
fail_ci_if_error: true
files: ./cobertura-coverage.xml
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

- name: Check Prettier Formatting
run: yarn run format
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# comfyui-electron

[![codecov](https://codecov.io/github/Comfy-Org/electron/graph/badge.svg?token=S64WJWD2ZX)](https://codecov.io/github/Comfy-Org/electron)

# Overview

This electron app is the simplest way to use [ComfyUI](https://github.com/comfyanonymous/ComfyUI) comes bundled with a few things:
Expand Down
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ module.exports = {
},
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
verbose: true,
collectCoverage: true,
coverageReporters: [
"text",
"cobertura"
]
};

0 comments on commit 54bfcf8

Please sign in to comment.