-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.02 KB
/
example.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
42
43
44
45
46
47
name: Test The Example
on:
push:
pull_request:
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
jobs:
run:
name: Run
runs-on: ubuntu-latest
services:
scylla:
image: scylladb/scylla:5.1
volumes:
- ./init.cql:/init.cql
ports:
- 9042:9042
options: >-
--health-cmd "[ $$(nodetool statusgossip) = running ]"
--health-interval 5s
--health-timeout 10s
--health-retries 10
steps:
- uses: actions/checkout@v3
- name: Cache Cargo
uses: Swatinem/rust-cache@v1
- uses: r7kamura/rust-problem-matchers@v1
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Apply init.cql
run: cqlsh scylla -f /init.cql
- name: Run Example
env:
RUST_LOG: debug
SCYLLA_NODES: scylla:9042
SCYLLA_DEFAULT_KEYSPACE: scyllax
run: cargo run --release -p scyllax-example