Implement Electrum Protocol v1.6 #382
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: [push, pull_request] | |
| name: CI | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| env: | |
| TEST_ELECTRUM_SERVER: fortress.qtornado.com:443 | |
| strategy: | |
| matrix: | |
| rust: | |
| - stable # STABLE | |
| - 1.75.0 # MSRV | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} | |
| - name: Install rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - name: Test | |
| run: cargo test --verbose --all-features | |
| - run: cargo check --verbose --features=use-openssl | |
| - run: cargo check --verbose --no-default-features --features=proxy | |
| - run: cargo check --verbose --no-default-features --features=minimal | |
| - run: cargo check --verbose --no-default-features --features=minimal,debug-calls | |
| - run: cargo check --verbose --no-default-features --features=proxy,use-openssl | |
| - run: cargo check --verbose --no-default-features --features=proxy,use-rustls | |
| - run: cargo check --verbose --no-default-features --features=proxy,use-rustls-ring | |
| - run: cargo check --verbose --no-default-features --features=proxy,use-rustls,use-rustls-ring | |
| fmt: | |
| name: Rust fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: rustfmt | |
| - name: Check fmt | |
| run: cargo fmt --all -- --config format_code_in_doc_comments=true --check | |
| clippy_check: | |
| name: Rust clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@v1 | |
| with: | |
| toolchain: 1.90.0 | |
| components: clippy | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2.2.1 | |
| - run: cargo clippy --all-features --all-targets -- -D warnings |