Fix udt type script not set in invoice #972
This file contains 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: Continuous integration | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dsherret/rust-toolchain-file@v1 | |
- uses: Swatinem/rust-cache@v2 | |
- run: | | |
cargo check | |
make check-dirty-rpc-doc | |
cargo-shear: | |
name: Cargo Shear | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dsherret/rust-toolchain-file@v1 | |
- uses: cargo-bins/cargo-binstall@main | |
- run: | | |
cargo binstall --no-confirm cargo-shear --force --locked | |
cargo shear | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dsherret/rust-toolchain-file@v1 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: nextest | |
- name: Install dependencies | |
run: | | |
wget "https://bitcoin.org/bin/bitcoin-core-27.0/bitcoin-27.0-x86_64-linux-gnu.tar.gz" | |
tar -xvaf "bitcoin-27.0-x86_64-linux-gnu.tar.gz" | |
echo "$(pwd)/bitcoin-27.0/bin" >> $GITHUB_PATH | |
wget "https://github.com/lightningnetwork/lnd/releases/download/v0.18.0-beta/lnd-linux-amd64-v0.18.0-beta.tar.gz" | |
tar -xvaf "lnd-linux-amd64-v0.18.0-beta.tar.gz" | |
echo "$(pwd)/lnd-linux-amd64-v0.18.0-beta" >> $GITHUB_PATH | |
- run: | | |
RUST_BACKTRACE=full RUST_LOG=trace cargo nextest run --no-fail-fast --features lnd-tests | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dsherret/rust-toolchain-file@v1 | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo fmt --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dsherret/rust-toolchain-file@v1 | |
- uses: Swatinem/rust-cache@v2 | |
- run: | | |
make clippy | |
coverage: | |
name: Code Coverage | |
needs: [ test ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dsherret/rust-toolchain-file@v1 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install Grcov | |
run: make coverage-install-tools | |
- name: Generate Code Coverage Report of Unit Tests | |
run: | | |
make coverage-run-unittests | |
make coverage-collect-data | |
- name: Upload Code Coverage Report of Unit Tests | |
uses: codecov/codecov-action@v3 | |
with: | |
files: coverage-report.info | |
env_vars: OS,RUST_TOOLCHAIN | |
fail_ci_if_error: false | |
flags: unittests | |
verbose: false | |
token: ${{ secrets.CODECOV_TOKEN }} | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
profile: [dev, release] | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dsherret/rust-toolchain-file@v1 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install Dependencies (Windows) | |
if: contains(matrix.os, 'windows') | |
run: | | |
vcpkg integrate install | |
vcpkg install openssl:x64-windows-static-md | |
- run: cargo build --verbose --profile ${{ matrix.profile }} |