-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (54 loc) · 2.13 KB
/
otlp.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
name: otlp
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Rust toolchain
run: rustup default nightly
- name: Install cargo-hack
run: cargo install cargo-hack
- name: All
working-directory: ./emitter/otlp
run: cargo test --all-features
- name: Docs
working-directory: ./emitter/otlp
run: cargo doc --all-features
- name: Build powerset
working-directory: ./emitter/otlp
run: cargo hack build --feature-powerset --lib
- name: Test powerset
working-directory: ./emitter/otlp
run: cargo hack test --feature-powerset --lib
- name: Minimal versions
working-directory: ./emitter/otlp
run: cargo hack test --feature-powerset --lib -Z minimal-versions
integration:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Rust toolchain
run: rustup default nightly
- name: Install certutil
run: sudo apt-get update && sudo apt-get install -y libnss3-tools
- name: Get otelcol
run: wget -O otelcol.deb https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.107.0/otelcol_0.107.0_linux_amd64.deb
- name: Install otelcol
run: sudo dpkg -i ./otelcol.deb
- name: Get mkcert
working-directory: ./emitter/otlp/test/integration
run: wget -O mkcert https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64 && chmod +x mkcert
- name: Configure mkcert
working-directory: ./emitter/otlp/test/integration
run: ./mkcert -install && ./mkcert 127.0.0.1 localhost
- name: Integration Test
working-directory: ./emitter/otlp/test/integration
run: cargo run
- name: Throughput Test
working-directory: ./emitter/otlp/test/throughput
run: cargo run --release