Skip to content

Commit 40a7aa6

Browse files
authored
fix(tests): coverage information found on head (#3181)
1 parent f262d47 commit 40a7aa6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/node.js.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ jobs:
4242
verbose: true
4343
file: ./coverage/coverage-final.json
4444
flags: macos-unittests
45+
- name: Code coverage (CodeWhisperer)
46+
env:
47+
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
48+
NODE_OPTIONS: ''
49+
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && ( github.ref == 'master' || github.event_name == 'pull_request' ) }}
50+
uses: codecov/codecov-action@v2
51+
with:
52+
verbose: true
53+
file: ./coverage/coverage-final.json
54+
flags: codewhisperer
4555

4656
windows:
4757
name: Windows nodejs

buildspec/windowsTests.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ phases:
4141
codecov -t $Env:CODE_COV_TOKEN `
4242
--flag unittest `
4343
-f "build/reports/jacoco/coverageReport/coverageReport.xml" `
44-
-c $Env:CODEBUILD_RESOLVED_SOURCE_VERSION;
45-
codecov -t $Env:CODE_COV_TOKEN `
46-
--flag codewhisperer `
47-
-f "build/reports/jacoco/coverageReport/coverageReport.xml" `
4844
-c $Env:CODEBUILD_RESOLVED_SOURCE_VERSION
4945
}
5046
reports:

0 commit comments

Comments
 (0)