-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (38 loc) 路 1.15 KB
/
scylla.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
33
34
35
36
37
38
39
40
41
name: Scylla
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
# Locally scylla can be started like so: docker run --name scylla -p 19042:19042 -p 9042:9042 --rm scylladb/scylla
services:
scylladb:
image: scylladb/scylla
ports:
- 9042:9042
- 19042:19042
options: --health-cmd "cqlsh --debug" --health-interval 5s --health-retries 10
volumes:
- ${{ github.workspace }}:/workspace
steps:
- uses: actions/checkout@v2
- name: Install stable 1.66
uses: actions-rs/toolchain@v1
with:
toolchain: 1.72.0
default: true
components: rustfmt, clippy
- name: Load .env file
uses: xom9ikk/dotenv@v1.0.2
- 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 -- --test-threads=1
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy check
run: cargo clippy --tests -- -D warnings