Skip to content

Merge pull request #19 from forged-org/feature/cargo-dist #44

Merge pull request #19 from forged-org/feature/cargo-dist

Merge pull request #19 from forged-org/feature/cargo-dist #44

Workflow file for this run

name: Check CLI
on:
push:
branches: [main]
pull_request:
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo fmt --all -- --check
working-directory: ./forged-cli
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y libusb-1.0-0-dev libudev-dev
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- name: cache dependencies
uses: swatinem/[email protected]
with:
working-directory: ./forged-cli
- run: cargo clippy
working-directory: ./forged-cli