-
-
Notifications
You must be signed in to change notification settings - Fork 24
32 lines (29 loc) · 1009 Bytes
/
rust.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
name: Continuous integration
on: [ push, pull_request ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
services:
cassandra:
image: cassandra
ports:
- 9042:9042
steps:
- uses: actions/checkout@v2
- name: Install minimal toolchain with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- 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 --all-features --verbose -- --test-threads=1
- name: Format check
run: cargo fmt --all -- --check
# Ensure that all targets compile and pass clippy checks under every possible combination of features
- name: Clippy check
run: cargo install cargo-hack && cargo hack --feature-powerset clippy --locked --release