Make modules the lowest unit of incrementality #264
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
name: Cargo Build & Test | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Compilation | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
# - beta | |
# - nightly | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- name: Cache build artifacts | |
uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "v0-rinku" | |
- name: Install cargo-nextest | |
run: cargo install cargo-nextest | |
- name: Build and Test | |
run: | | |
cargo build --verbose | |
cargo nextest run --verbose | |
formatting: | |
name: Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run formatter | |
run: cargo fmt --check |