-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.25 KB
/
test-lints.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
name: Lints-Tests
on:
push:
branches:
- main
- master
pull_request:
jobs:
test-os:
name: test ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
run: rustup override set stable && rustup update
- name: Install clippy
run: rustup component add clippy
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Start kafka and postgres
run: docker compose -f "docker-compose.yml" up -d --build
- name: Wait for kafka until it is ready
run: |
while ! docker exec scouter_server_kafka kafka-topics --bootstrap-server kafka:29092 --list; do
sleep 5
done
- name: Wait for postgres until it is ready
run: |
while ! docker exec scouter_server_db pg_isready -U postgres; do
sleep 5
done
- name: Test
run: |
make format
make lints
make test
make test.ignored
env:
RUST_BACKTRACE: 1
- name: Stop Containers
if: always()
run: docker compose -f "docker-compose.yml" down