File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Rust
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions-rust-lang/setup-rust-toolchain@v1
17+ with :
18+ cache : true
19+ - uses : arduino/setup-protoc@v3
20+ - name : Build
21+ run : cargo build
22+ - name : Format check
23+ run : cargo fmt -- --check
24+ - name : Clippy check
25+ run : cargo clippy -- -D warnings
26+ - name : Run tests
27+ run : cargo test
28+ test-example :
29+ runs-on : ubuntu-latest
30+ services :
31+ nats :
32+ image : nats
33+ ports :
34+ - 4222:4222
35+ steps :
36+ - uses : actions/checkout@v4
37+ - uses : actions-rust-lang/setup-rust-toolchain@v1
38+ with :
39+ cache : true
40+ - uses : arduino/setup-protoc@v3
41+ - name : Run example
42+ working-directory : examples/simple
43+ run : cargo run
You can’t perform that action at this time.
0 commit comments