-
Notifications
You must be signed in to change notification settings - Fork 576
34 lines (31 loc) · 1003 Bytes
/
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
# Test Coverage #
name: CodeCov
on:
push:
branches: [master]
workflow_run:
workflows: ['Master branch']
types:
- completed
jobs:
CodeCov:
environment: ali_oss_AK
runs-on: ubuntu-latest
env:
ONCI: true
ALI_SDK_OSS_ID: ${{secrets.ALI_SDK_OSS_ID}}
ALI_SDK_OSS_SECRET: ${{secrets.ALI_SDK_OSS_SECRET}}
ALI_SDK_OSS_REGION: ${{secrets.ALI_SDK_OSS_REGION}}
ALI_SDK_STS_BUCKET: ${{secrets.ALI_SDK_STS_BUCKET}}
ALI_SDK_STS_ID: ${{secrets.ALI_SDK_STS_ID}}
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}
steps:
- uses: actions/checkout@v4
- name: test and report upload
run: |
npm install
npm run tsc
npx nyc --reporter=lcov node_modules/.bin/_mocha -t 120000 -r should test/node/*.test.js test/node/**/*.test.js
npx codecov -t ${{secrets.CODECOV_KEY}}