chore(deps): bump the cargo-dependencies group with 3 updates (#85) #229
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build & Test | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: x86_64-unknown-linux-gnu | |
components: rustfmt, clippy | |
- name: Cache Cargo dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Check the formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: -- --check --verbose | |
- name: Build the project | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --locked --verbose | |
- name: Check the lints | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --tests --verbose -- -D warnings | |