Skip to content

Commit

Permalink
Merge pull request #116 from biothings/codecov
Browse files Browse the repository at this point in the history
Run test workflow with Codecov
  • Loading branch information
tokebe authored Aug 4, 2022
2 parents 82b84b9 + 6b2c21f commit ddc77f9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test_ws_codecov.yml
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

0 comments on commit ddc77f9

Please sign in to comment.