add file snapshot #94
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: RAFT-RS CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Check formatting | |
run: cargo fmt -- --check | |
- name: Check Unused Dependencies | |
run: | | |
cargo install cargo-machete | |
cargo machete | |
- name: Check Linting | |
run: cargo clippy -- -D warnings | |
- name: Unit test | |
run: cargo test | |
- name: Build project | |
run: cargo build |