Skip to content

Commit

Permalink
Add linter step to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoquick authored and DanGould committed Jan 7, 2023
1 parent e8b1c57 commit 9403821
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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/[email protected]
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: cargo clippy -- -D warnings

0 comments on commit 9403821

Please sign in to comment.