Add linting

This commit is contained in:
Jai A
2023-03-30 15:31:15 -07:00
parent 4875ed4359
commit 8ee77f00b7
3 changed files with 39 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
name: CLI Build
name: CLI Build + Lint
on:
push:
@@ -23,13 +23,20 @@ jobs:
uses: actions/cache@v2
with:
path: ../target/**
key: ${{ runner.os }}-build-cache
key: ${{ runner.os }}-theseus-cli-${{ hashFiles('Cargo.lock') }}
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
name: Build program
with:
command: build
args: --bin theseus_cli
args: --bin theseus_cli
- name: Run Lint
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --bin theseus_cli