Update README.md #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.66.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 |