Skip to content

CI

CI #11

Workflow file for this run

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