-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (33 loc) · 868 Bytes
/
coverage.yml
File metadata and controls
38 lines (33 loc) · 868 Bytes
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
name: Coverage
on:
pull_request:
push:
branches:
- "master"
tags:
- "!**"
jobs:
coverage:
permissions:
contents: read
name: Check and submit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
with:
version: 9
- name: Collect coverage
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm -r build
- run: pnpm run cov:check
- name: Submit report
if: success() || failure()
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage-final.json