feat: implement a TUI 🐀 #110
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: ["main"] | |
paths: | |
- '**/*.rs' | |
- 'src/**/*' | |
- 'Cargo.toml' | |
- 'Cargo.lock' | |
pull_request: | |
paths: | |
- '**/*.rs' | |
- 'src/**/*' | |
- 'Cargo.toml' | |
- 'Cargo.lock' | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: cargo fmt | |
run: cargo fmt --all --check | |
- name: cargo clippy | |
run: cargo clippy --all-features -- -Dwarnings | |
build: | |
runs-on: ubuntu-latest | |
needs: check | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
cargo build --all-features --verbose | |
cargo build --all-features --release --verbose | |
test: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test lub & docs | |
run: | | |
cargo test --lib --all-features | |
cargo test --doc --all-features |