chore(deps): bump clap from 4.4.12 to 4.4.13 (#66) #151
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: | |
paths: | |
- '**/*.rs' | |
- '**/*.toml' | |
workflow_dispatch: | |
jobs: | |
job: | |
name: Rust CI (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Cache cargo files | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
./target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
# Bad formatting | |
- name: Run fmt | |
run: cargo fmt --all -- --check | |
# Code compiles | |
- name: Run check | |
run: cargo check --all | |
# Follow "rules" | |
- name: Run clippy | |
run: cargo clippy --all -- -D warnings | |
# Test passes | |
- name: Run test | |
run: cargo test --all |