Skip to content

Commit 5c02fff

Browse files
authored
Merge pull request #7 from procrastinationfighter/main
Set up basic workflow
2 parents d204d55 + ab5a3f6 commit 5c02fff

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/rust.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)