-
Notifications
You must be signed in to change notification settings - Fork 53
86 lines (71 loc) · 12.6 KB
/
rust.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
79
80
81
82
83
84
85
86
name: Rust tests
on:
push:
branches: [main]
paths:
- logger_core/**
- babushka-core/**
- submodules/**
pull_request:
paths:
- logger_core/**
- babushka-core/**
- submodules/**
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
redis:
- 6.2.4
- 7.0.0
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install redis
uses: ./.github/workflows/install-redis
with:
redis-version: ${{ matrix.redis }}
- name: Install protoc
run: |
sudo apt update
sudo apt install protobuf-compiler
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v1
- name: Run tests
working-directory: ./babushka-core
run: cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture && cargo test client_cmd_tests::test_read_from_replica_round_robin_do_not_read_from_disconnected_replica -- --nocapture
- name: Run logger tests
working-directory: ./logger_core
run: cargo test -- --nocapture --test-threads=1
- name: Check features
working-directory: ./babushka-core
run: |
cargo check --benches --all-features
cargo check --no-default-features
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: ./.github/workflows/lint-rust
with:
cargo-toml-folder: ./babushka-core
- uses: ./.github/workflows/lint-rust
with:
cargo-toml-folder: ./logger_core
- uses: ./.github/workflows/lint-rust
with:
cargo-toml-folder: ./benchmarks/rust