-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 909 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
35
36
37
38
39
40
41
42
43
44
45
name: Codecov
on:
# pull_request:
# types: [opened]
push:
branches:
- main
- feature/ci-test
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Check node version
run: node -v
- name: Install dependencies
run: npm ci
- name: Check typescript version
run: npm list typescript
- name: Check jest version
run: npm list jest
- name: Check @amap/amap-jsapi-types version
run: npm list @amap/amap-jsapi-types
- name: Run tests
run: npm run test:all -- --coverage
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}