generated from kevinxin90/typescript_template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from biothings/codecov
Run test workflow with Codecov
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: ["push", "pull_request"] | ||
|
||
name: Test Codecov with Workspace | ||
|
||
jobs: | ||
|
||
test-coverage: | ||
name: Generate coverage report | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
repository: biothings/bte-trapi-workspace | ||
|
||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: npm install, generate coverage report | ||
run: | | ||
npm run clone | ||
npm i || true && npm i | ||
npm run test-cov --workspace=@biothings-explorer/query_graph_handler | ||
- name: Send coverage report to codecov for visualization | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
working-directory: ./packages/@biothings-explorer/query_graph_handler | ||
files: ./coverage/lcov.info | ||
verbose: true |