File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Rust
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ env :
10
+ CARGO_TERM_COLOR : always
11
+
12
+ jobs :
13
+ build :
14
+ runs-on : ubuntu-latest
15
+ services :
16
+ scylladb1 :
17
+ image : scylladb/scylla
18
+ ports :
19
+ - 9042:9042
20
+ options : --health-cmd "cqlsh --debug" --health-interval 5s --health-retries 10
21
+ volumes :
22
+ - ${{ github.workspace }}:/workspace
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+ - name : Format check
26
+ run : cargo fmt --verbose --all -- --check
27
+ - name : Clippy check
28
+ run : cargo clippy --verbose -- -D warnings
29
+ - name : Build
30
+ run : cargo build --verbose
31
+ - name : Run tests
32
+ # test threads must be one because else database tests will run in parallel and will result in flaky tests
33
+ run : cargo test --verbose -- --test-threads=1
You can’t perform that action at this time.
0 commit comments