Skip to content

ci: Check order of BOLT message type constants #110

ci: Check order of BOLT message type constants

ci: Check order of BOLT message type constants #110

Workflow file for this run

name: Rust
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install taplo
run: curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz | gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo
- name: Check TOML formatting
run: taplo format --check
- name: Check Rust formatting
run: cargo fmt --all --check
- name: Check order of BOLT message type constants
run: .github/workflows/check-bolt-msg-type-order.sh
- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --verbose
- name: Build with nyx feature
run: cargo build --verbose --features nyx
- name: Run tests
run: cargo test --verbose