[pull] main from linera-io:main #1166
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: ScyllaDB tests | |
on: | |
push: | |
branches: [ main, 'devnet_*', 'testnet_*' ] | |
pull_request: | |
branches: | |
- "**" | |
paths: | |
- '.github/workflows/scylladb.yml' | |
- 'toolchains/**' | |
- 'linera-views/**' | |
- 'linera-storage/**' | |
- 'docker_scylla/**' | |
workflow_dispatch: | |
# This allows a subsequently queued workflow run to interrupt previous runs on pull-requests | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}' | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
RUST_BACKTRACE: short | |
RUSTFLAGS: "-D warnings" | |
RUSTUP_MAX_RETRIES: 10 | |
RUST_LOG: warn | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest-8-cores | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build example applications | |
run: | | |
cd examples | |
cargo build --locked --release --target wasm32-unknown-unknown | |
- name: Build | |
run: | | |
cargo build --locked --features scylladb | |
- name: Setup local ScyllaDB instance | |
run: | | |
docker run --name my_scylla_container -d -p 9042:9042 scylladb/scylla | |
- name: Run ScyllaDB tests | |
run: | | |
RUST_LOG=linera=info cargo test --locked --features scylladb -- scylla --nocapture |