You've already forked AstralRinth
forked from didirus/AstralRinth
Add linting
This commit is contained in:
13
.github/workflows/cli-build.yml
vendored
13
.github/workflows/cli-build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user