CI #11
Workflow file for this run
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
on: [push] | |
name: CI | |
env: | |
CI: 1 | |
CARGO_INCREMENTAL: 0 | |
RUST_BACKTRACE: short | |
RUSTFLAGS: "-D warnings -W rust-2021-compatibility" | |
jobs: | |
build_and_test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 20 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
- name: Compile | |
run: cargo test --no-run --locked | |
- name: Test | |
run: cargo test -- --nocapture --quiet |