forked from scylladb/scylla-rust-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 975 Bytes
/
rust.yml
File metadata and controls
35 lines (32 loc) · 975 Bytes
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
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
services:
scylladb:
image: scylladb/scylla
ports:
- 9042:9042
options: --health-cmd "cqlsh --debug" --health-interval 5s --health-retries 10
volumes:
- ${{ github.workspace }}:/workspace
steps:
- uses: actions/checkout@v2
- name: Format check
run: cargo fmt --verbose --all -- --check
- name: Clippy check
run: cargo clippy --verbose --examples -- -D warnings
- name: Cargo check without features
run: cargo check --manifest-path "scylla/Cargo.toml" --features ""
- name: Build
run: cargo build --verbose --examples
- name: Run tests
# test threads must be one because else database tests will run in parallel and will result in flaky tests
run: cargo test --verbose -- --test-threads=1