-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.64 KB
/
Copy pathci.yml
File metadata and controls
64 lines (53 loc) · 1.64 KB
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
name: CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.80"
components: rustfmt, clippy
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets -- -D warnings
- run: cargo build --all-targets
- name: Verify examples compile
run: |
for example in examples/*.rs; do
echo "Checking $example..."
cargo check --example "$(basename "$example" .rs)" 2>/dev/null || echo "Standalone example $example (non-blocking)"
done
- run: cargo test
conformance:
runs-on: ubuntu-latest
needs: ci
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.80"
- name: Start Streamline server
run: docker compose -f docker-compose.test.yml up -d --wait
- name: Wait for health check
run: |
for i in $(seq 1 30); do
if curl -sf http://localhost:9094/health > /dev/null 2>&1; then
echo "Streamline is healthy"
exit 0
fi
echo "Waiting for Streamline... ($i/30)"
sleep 2
done
echo "Streamline failed to start"
docker compose -f docker-compose.test.yml logs
exit 1
- name: Run conformance tests
run: cargo test --test conformance -- --ignored
- name: Stop Streamline server
if: always()
run: docker compose -f docker-compose.test.yml down -v