-
Notifications
You must be signed in to change notification settings - Fork 197
56 lines (49 loc) · 1.67 KB
/
coverage_report.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Creates a coverage report and uploads it to Google Cloud Storage.
# Includes unit tests, script tests, and fuzz tests.
# Should only be run on trusted code (such as commits merged to main).
name: Coverage Report
on:
workflow_call:
workflow_dispatch:
jobs:
coverage-report:
timeout-minutes: 60
name: Coverage Report
runs-on: icelake
environment:
name: coverage-report
url: ${{ vars.COVERAGE_URL }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/deps
- uses: ./.github/actions/hugepages
- uses: dtolnay/[email protected]
- name: Generate all coverage
run: |
sudo prlimit --pid $$ --memlock=-1:-1
MACHINES="linux_clang_x86_64 linux_clang_haswell linux_clang_icelake" \
EXTRAS="llvm-cov" \
COV_REPORT=1 \
contrib/test/ci_tests.sh
- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.FUZZ_SERVICE_ACCT_JSON_BUNDLE }}
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
- name: Upload artifact
run: |
gcloud storage rm -r ${{ vars.COVERAGE_BUCKET }}/ || true
gcloud storage cp -r ./build/cov/html/* ${{ vars.COVERAGE_BUCKET }}/
- name: Upload coverage report to CodeCov
uses: codecov/codecov-action@v5
timeout-minutes: 5
with:
files: build/cov/cov.lcov
name: dist-cov-report
fail_ci_if_error: false
functionalities: search
flags: ci
token: ${{ secrets.CODECOV_TOKEN }}