Upload E2E

This commit is contained in:
Sidharth Vinod 2023-06-17 17:54:13 +05:30
parent 2ad32f9208
commit f8540e9468
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
2 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,7 @@ jobs:
# Otherwise (e.g. if running from fork), we run on a single container only
if: ${{ ( env.CYPRESS_RECORD_KEY != '' ) || ( matrix.containers == 1 ) }}
with:
start: pnpm run dev
start: pnpm run dev:coverage
wait-on: 'http://localhost:9000'
# Disable recording if we don't have an API key
# e.g. if this action was run from a fork
@ -41,7 +41,9 @@ jobs:
parallel: ${{ secrets.CYPRESS_RECORD_KEY != '' }}
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
- uses: codecov/codecov-action@v3
VITEST_COVERAGE: true
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage/cypress/lcov.info
flags: e2e

View File

@ -41,7 +41,8 @@ jobs:
run: |
pnpm exec vitest run ./packages/mermaid/src/diagrams/gantt/ganttDb.spec.ts --coverage
- uses: codecov/codecov-action@v3
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage/vitest/lcov.info
flags: unit