Slosh 216/iterative docs development #1241
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: | |
pull_request: | |
env: | |
RUSTFLAGS: -Dwarnings | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Format | |
run: | | |
cargo version | |
rustc --version | |
cargo fmt --verbose -- --check | |
- name: Clippy | |
run: | | |
cargo version | |
rustc --version | |
cargo clippy --verbose -- -D warnings | |
- name: Build | |
run: | | |
cargo version | |
rustc --version | |
cargo build --workspace --verbose | |
- name: Run rust tests | |
run: cargo test --verbose | |
- name: Run lisp integration tests | |
run: cargo test --workspace | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
cargo version | |
rustc --version | |
cargo build --workspace --verbose | |
- name: Run rust tests | |
run: cargo test --verbose | |
- name: Run lisp integration tests | |
run: cargo test --workspace | |
# if this gets too slow consider | |
# https://github.com/Swatinem/rust-cache | |
# along with | |
# - name: Compile rust tests | |
# run: cargo test --no-run | |
# in linux AND macos tests |