Aoc tests #191
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: Rust | |
on: | |
push: | |
branches: [ "**" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: CC | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build workspace | |
run: cargo build --workspace --release | |
- name: Cargo fmt | |
run: cargo fmt --check | |
- name: Cargo clippy | |
run: cargo clippy --release -- -D warnings | |
- name: Run tests | |
run: cargo test --release | |
- name: Run regression tests | |
env: | |
MONGO_PW: ${{ secrets.MONGO_PW }} | |
MONGO_ADDRESS: ${{ secrets.MONGO_ADDRESS }} | |
run: cargo run -p bencher --release -- --read --write |