-
-
Notifications
You must be signed in to change notification settings - Fork 60
37 lines (31 loc) · 958 Bytes
/
coverage.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
name: Generate Coverage
on: [push, pull_request]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: pnpm/action-setup@v4.0.0
- uses: actions/setup-node@v4
with:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm run build
- name: Generate coverage report
run: pnpm run coverage
- name: Upload imagetools-core Report
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: imagetools-core
files: 'packages/core/coverage/coverage-final.json'
- name: Upload vite-imagetools Report
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: vite-imagetools
files: 'packages/vite/coverage/coverage-final.json'