doc: added README.md #2
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
# Run Clippy | |
name: Clippy | |
on: [push, pull_request] | |
jobs: | |
clippy: | |
strategy: | |
fail-fast: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v3 | |
# Cache Rust | |
- uses: actions/cache@v3 | |
with: | |
path: ./target | |
key: ${{ hashFiles('./Cargo.lock') }} | |
# Cache Rust | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cargo | |
key: ${{ hashFiles('./Cargo.lock') }} | |
- name: Install Rust with Clippy | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- name: Run Clippy | |
run: cargo clippy |