-
Notifications
You must be signed in to change notification settings - Fork 271
39 lines (35 loc) · 1.26 KB
/
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
name: coverage
permissions:
contents: read
on:
pull_request:
paths:
- .github/workflows/coverage.yml
schedule:
# Run daily at 11AM UTC (3AM PST).
- cron: '0 11 * * *'
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings -A deprecated -C debuginfo=2"
RUSTUP_MAX_RETRIES: 10
CXX: "clang+-14"
jobs:
test:
name: codecov
runs-on: ubuntu-latest
timeout-minutes: 30
container:
image: docker://ghcr.io/linkerd/dev:v42-rust
options: --security-opt seccomp=unconfined # 🤷
steps:
# XXX(ver) Workaround for a linking problem in the binary we store in the
# devcontainer.
- run: rm -f /usr/local/bin/cargo-tarpaulin && cargo install cargo-tarpaulin
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --no-run
- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --skip-clean --ignore-tests --no-fail-fast --out=Xml
# Some tests are especially flakey in coverage tests. That's fine. We
# only really care to measure how much of our codebase is covered.
continue-on-error: true
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70