Add .github/workflows/relyance-sci.yml #25
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 CI | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build & test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install cargo-audit | |
run: cargo install cargo-audit | |
- name: Check Format | |
run: cargo fmt -- --check | |
- name: Build | |
run: cargo build --verbose | |
- name: Clippy | |
run: cargo clippy --verbose -- -D warnings | |
- name: Audit | |
run: cargo audit |