From 94038211f14befeaa54169ce10b2ce7c4faa4361 Mon Sep 17 00:00:00 2001 From: Hunter Trujillo Date: Fri, 6 Jan 2023 16:21:04 -0700 Subject: [PATCH] Add linter step to CI. --- .github/workflows/rust.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d0073bcf..c15117a2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: test-lib: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false matrix: @@ -25,7 +25,7 @@ jobs: args: --verbose --all-features --lib --manifest-path payjoin/Cargo.toml build-payjoin-client: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false matrix: @@ -44,3 +44,19 @@ jobs: with: command: build args: --manifest-path payjoin-client/Cargo.toml + + lint: + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + rust: [stable] + + steps: + - uses: actions/checkout@v2 + - uses: Swatinem/rust-cache@v1.2.0 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + - run: cargo clippy -- -D warnings