-
Notifications
You must be signed in to change notification settings - Fork 270
78 lines (73 loc) · 2.57 KB
/
test.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Runs tests that complete relatively quickly.
name: test
permissions:
contents: read
on:
pull_request:
paths:
- Cargo.lock
- "**/Cargo.toml"
- "**/*.rs"
- justfile
- .github/workflows/test.yml
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings -A deprecated"
RUSTUP_MAX_RETRIES: 10
jobs:
# Test the meshtls backends.
meshtls:
timeout-minutes: 10
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v40-rust
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
- run: just fetch
- run: just clippy-crate linkerd-meshtls --no-default-features --features=boring,rustls
- run: |
just test-crate linkerd-meshtls --no-default-features --features=boring,rustls --no-run \
--package=linkerd-meshtls-boring \
--package=linkerd-meshtls-rustls
- run: |
just test-crate linkerd-meshtls --no-default-features --features=boring,rustls \
--package=linkerd-meshtls-boring \
--package=linkerd-meshtls-rustls
# Run non-integration tests. This should be quick.
unit:
timeout-minutes: 10
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v40-rust
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
- run: just fetch
- run: |
just test-build \
--exclude=linkerd-app \
--exclude=linkerd-app-admin \
--exclude=linkerd-app-core \
--exclude=linkerd-app-gateway \
--exclude=linkerd-app-inbound \
--exclude=linkerd-app-integration \
--exclude=linkerd-app-outbound \
--exclude=linkerd-app-test \
--exclude=linkerd-meshtls \
--exclude=linkerd-meshtls-boring \
--exclude=linkerd-meshtls-rustls \
--exclude=linkerd2-proxy
- run: |
just test \
--exclude=linkerd-app \
--exclude=linkerd-app-admin \
--exclude=linkerd-app-core \
--exclude=linkerd-app-gateway \
--exclude=linkerd-app-inbound \
--exclude=linkerd-app-integration \
--exclude=linkerd-app-outbound \
--exclude=linkerd-app-test \
--exclude=linkerd-meshtls \
--exclude=linkerd-meshtls-boring \
--exclude=linkerd-meshtls-rustls \
--exclude=linkerd2-proxy