forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (45 loc) · 1.32 KB
/
mobile-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
38
39
40
41
42
43
44
45
46
47
48
49
name: mobile_coverage
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
env:
if: ${{ github.repository == 'envoyproxy/envoy' }}
uses: ./.github/workflows/_env.yml
secrets: inherit
coverage:
if: ${{ needs.env.outputs.mobile_coverage == 'true' }}
needs: env
name: coverage
runs-on: ${{ needs.env.outputs.agent_ubuntu }}
timeout-minutes: 120
defaults:
run:
shell: bash
container:
image: ${{ needs.env.outputs.build_image_ubuntu }}
steps:
- uses: actions/checkout@v3
- name: Add safe directory
run: git config --global --add safe.directory /__w/envoy/envoy
- name: 'Run coverage'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && BAZEL_BUILD_OPTION_LIST="--config=remote-ci-linux-coverage" \
PATH=/opt/llvm/bin:${PATH} \
COVERAGE_THRESHOLD=76 \
../test/run_envoy_bazel_coverage.sh //test/common/... //test/cc/...
- name: 'Package coverage'
run: |
cd mobile && tar -czf coverage.tar.gz generated/coverage
- name: 'Upload report'
uses: actions/upload-artifact@v3
with:
name: coverage.tar.gz
path: mobile/coverage.tar.gz