-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.4 KB
/
Copy path51-code-coverage.yml
File metadata and controls
46 lines (43 loc) · 1.4 KB
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
43
44
45
46
---
name: 51 ☘️ Code coverage
# yamllint disable-line rule:truthy
on:
schedule:
- cron: '0 0 * * 0' # weekly Sunday 00:00 UTC
# need ID token write permission to use OIDC
# need actions: read to access artifacts from other jobs
permissions:
contents: read
# id-token: write
actions: read
jobs:
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Needed for commit range checks
ref: main # check out the branch, not detached HEAD
- uses: ./.github/actions/tools
- run: task -t .github/taskfile.build.yml install
- run: task -t .github/taskfile.clover.yml clover-unit
- run: task -t .github/taskfile.clover.yml clover-report
- if: always()
uses: actions/upload-artifact@v7
with:
name: coverage-report
path: target/site/clover/**
retention-days: 30
if-no-files-found: warn
# Extract coverage summary and generate job summary
- if: always()
id: coverage
run: .github/scripts/coverage-summary.sh target/site/clover/clover.xml
- if: always()
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/site/clover/clover.xml
codecov_yml_path: .github/.codecov.yml
fail_ci_if_error: false
handle_no_reports_found: true