Skip to content

Commit

Permalink
Merge pull request #16 from mempool/junderw/housekeeping
Browse files Browse the repository at this point in the history
House keeping updates
  • Loading branch information
wiz authored Jul 23, 2023
2 parents 9fe7123 + b21d2ac commit 8d2ff11
Show file tree
Hide file tree
Showing 28 changed files with 486 additions and 283 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
on:
pull_request:
push:
branches:
- mempool


name: Compile Check and Lint

jobs:
check:
name: Compile Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: toolchain
uses: dtolnay/[email protected]
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
- run: cargo check --all-features

fmt:
name: Formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: toolchain
uses: dtolnay/[email protected]
with:
components: rustfmt
- run: cargo fmt --all -- --check

clippy:
name: Linter
runs-on: ubuntu-latest
needs: [check]
strategy:
matrix: # Try all combinations of features. Some times weird things appear.
features: ['', '-F electrum-discovery', '-F liquid', '-F electrum-discovery,liquid']
steps:
- uses: actions/checkout@v3
- id: toolchain
uses: dtolnay/[email protected]
with:
components: clippy
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
- name: Clippy with Features = ${{ matrix.features }}
run: cargo clippy ${{ matrix.features }}
Loading

0 comments on commit 8d2ff11

Please sign in to comment.