forked from fastify/fastify
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.05 KB
/
coverage-win.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: Code Coverage (win)
on:
workflow_call:
jobs:
check-coverage:
runs-on: windows-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
cache-dependency-path: package.json
- name: Install
run: |
npm install --ignore-scripts
# We do not check coverage requirements here because the goal is to
# generate a report to upload as an artifact.
- name: Generate coverage report
run: |
npm run coverage:ci
- uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: coverage-report-win
path: ./.tap/report/
# Here, we verify the coverage thresholds so that this workflow can pass
# or fail and stop further workflows if this one fails.
- name: Verify coverage meets thresholds
run: |
npm run coverage:ci-check-coverage