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",