-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (34 loc) · 1.06 KB
/
test_ws_codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
on: ["push", "pull_request"]
name: Test in workspace
jobs:
test-coverage:
name: Generate coverage report
runs-on: ubuntu-latest
steps:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7.0.7
- uses: actions/checkout@v3
with:
repository: biothings/biothings_explorer
ref: ${{ steps.branch-name.outputs.current_branch }}
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Use pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: pnpm install, generate coverage report
run: |
pnpm run clone
pnpm run git checkout ${{ steps.branch-name.outputs.current_branch }}
pnpm i || pnpm i
pnpm --filter api-response-transform test-cov
- name: Send coverage report to codecov for visualization
uses: codecov/codecov-action@v3
with:
working-directory: ./packages/@biothings-explorer/api-response-transform
files: ./coverage/lcov.info
verbose: true