generated from Gabb-c/node-ts-lib-setup
-
-
Notifications
You must be signed in to change notification settings - Fork 28
37 lines (29 loc) · 810 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: Coverage
on:
push:
branches: [main]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
id: pnpm-install
with:
version: latest
run_install: false
- name: Setup Node.js lts/gallium
uses: actions/setup-node@v3.6.0
with:
node-version: lts/gallium
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate coverage report
run: pnpm test:coverage
- name: Upload coverage report to Codecov
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}