-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 959 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
name: Codecov
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- 'main'
jobs:
codecov-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: formsort/action-check-codecov-config@v1
codecov:
needs:
- codecov-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- run: npm ci
- run: npm run build
- run: npm run test:ci
- run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov
for dir in packages/*; do
./codecov --dir "${dir}" --flags "$(basename "${dir}")" --token "${CODECOV_TOKEN}" --verbose
done
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}