mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Add codecov to unit tests
This commit is contained in:
parent
1e84668270
commit
8d244062e2
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Unit Tests
|
- name: Run Unit Tests
|
||||||
run: |
|
run: |
|
||||||
pnpm run ci --coverage
|
pnpm test:coverage
|
||||||
|
|
||||||
- name: Run ganttDb tests using California timezone
|
- name: Run ganttDb tests using California timezone
|
||||||
env:
|
env:
|
||||||
@ -39,8 +39,15 @@ jobs:
|
|||||||
# since some days have 25 hours instead of 24.
|
# since some days have 25 hours instead of 24.
|
||||||
TZ: America/Los_Angeles
|
TZ: America/Los_Angeles
|
||||||
run: |
|
run: |
|
||||||
pnpm exec vitest run ./packages/mermaid/src/diagrams/gantt/ganttDb.spec.ts
|
pnpm exec vitest run ./packages/mermaid/src/diagrams/gantt/ganttDb.spec.ts --coverage
|
||||||
|
|
||||||
|
- uses: codecov/codecov-action@v3
|
||||||
|
with:
|
||||||
|
files: ./coverage/vitest/lcov.info
|
||||||
|
flags: unit
|
||||||
|
name: mermaid-codecov
|
||||||
|
fail_ci_if_error: true
|
||||||
|
verbose: true
|
||||||
# Coveralls is throwing 500. Disabled for now.
|
# Coveralls is throwing 500. Disabled for now.
|
||||||
# - name: Upload Coverage to Coveralls
|
# - name: Upload Coverage to Coveralls
|
||||||
# uses: coverallsapp/github-action@v2
|
# uses: coverallsapp/github-action@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user