forked from morganstanley/ComposeUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add codecov to CI (morganstanley#169)
* Add codecov to CI * Coverage for .NET * Generate coverage to composeui-messaging-client * set target to 100%
- Loading branch information
Showing
5 changed files
with
35 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet build $_ --configuration Release --no-restore; if ($LASTEXITCODE -ne 0 ) {throw "Build for $_ FAILED"; }} | ||
|
||
- name: Test .Net | ||
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet test $_ --no-restore --verbosity normal} | ||
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet test $_ --no-restore --verbosity normal --collect:"XPlat Code Coverage"} | ||
|
||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
|
@@ -45,4 +45,7 @@ jobs: | |
run: npx lerna run build | ||
|
||
- name: Test JavaScript | ||
run: npx lerna run test | ||
run: npx lerna run test | ||
|
||
- name: Codecov | ||
uses: codecov/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
dist/ | ||
node_modules/ | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* For a detailed explanation regarding each configuration property and type check, visit: | ||
* https://jestjs.io/docs/configuration | ||
*/ | ||
|
||
export default { | ||
// Automatically clear mock calls, instances, contexts and results before every test | ||
clearMocks: true, | ||
|
||
// Indicates whether the coverage information should be collected while executing the test | ||
collectCoverage: true, | ||
|
||
// The directory where Jest should output its coverage files | ||
coverageDirectory: "coverage", | ||
|
||
// Indicates which provider should be used to instrument code for coverage | ||
coverageProvider: "v8", | ||
|
||
// A preset that is used as a base for Jest's configuration | ||
preset: "ts-jest/presets/default-esm", | ||
setupFilesAfterEnv: [ | ||
"./testSetup.ts" | ||
] | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,46 +36,5 @@ | |
"dependencies": { | ||
"@types/node": "^18.11.18", | ||
"rxjs": "^7.8.0" | ||
}, | ||
"jest": { | ||
"preset": "ts-jest/presets/default-esm", | ||
"setupFilesAfterEnv": [ | ||
"./testSetup.ts" | ||
] | ||
}, | ||
"dependenciesMeta": { | ||
"@jest/[email protected]": { | ||
"unplugged": true | ||
}, | ||
"@rollup/[email protected]": { | ||
"unplugged": true | ||
}, | ||
"@types/[email protected]": { | ||
"unplugged": true | ||
}, | ||
"[email protected]": { | ||
"unplugged": true | ||
}, | ||
"[email protected]": { | ||
"unplugged": true | ||
}, | ||
"[email protected]": { | ||
"unplugged": true | ||
}, | ||
"[email protected]": { | ||
"unplugged": true | ||
}, | ||
"[email protected]": { | ||
"unplugged": true | ||
}, | ||
"[email protected]": { | ||
"unplugged": true | ||
}, | ||
"[email protected]": { | ||
"unplugged": true | ||
}, | ||
"[email protected]": { | ||
"unplugged": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters