From 2201fc119470c7ed1402d6103a640b4e2e644708 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 28 Feb 2023 20:55:32 +0100 Subject: [PATCH] e2e: coverage reports Signed-off-by: CrazyMax --- .github/workflows/e2e.yml | 8 +++++++- .github/workflows/test.yml | 1 + package.json | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 024ae10..0715f9d 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -34,6 +34,12 @@ jobs: run: yarn install - name: Test - run: yarn test:e2e + run: yarn test-coverage:e2e --coverageDirectory=./coverage env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - + name: Upload coverage + uses: codecov/codecov-action@v3 + with: + file: ./coverage/clover.xml + flags: e2e diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 693bbb0..ad7ad35 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,3 +46,4 @@ jobs: uses: codecov/codecov-action@v3 with: file: ./coverage/clover.xml + flags: unit diff --git a/package.json b/package.json index 6886fd1..9a1f74b 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,9 @@ "prettier": "prettier --check \"./**/*.ts\"", "prettier:fix": "prettier --write \"./**/*.ts\"", "test": "jest", + "test:e2e": "jest -c jest.config.e2e.ts --runInBand --detectOpenHandles --forceExit", "test-coverage": "jest --coverage", - "test:e2e": "jest -c jest.config.e2e.ts --runInBand --detectOpenHandles --forceExit" + "test-coverage:e2e": "jest --coverage -c jest.config.e2e.ts --runInBand --detectOpenHandles --forceExit" }, "repository": { "type": "git",