@@ -22,31 +22,36 @@ PIN_RELEASE_DEPS # pin the release dependencies in our main workspace
2222
2323export RUST_BACKTRACE=1
2424
25- echo -e " \n\nChecking the workspace, except lightning-transaction-sync."
25+ echo " ::group::Checking the workspace, except lightning-transaction-sync."
2626cargo check --verbose --color always
2727
2828WORKSPACE_MEMBERS=( $( cat Cargo.toml | tr ' \n' ' \r' | sed ' s/\r //g' | tr ' \r' ' \n' | grep ' ^members =' | sed ' s/members.*=.*\[//' | tr -d ' "' | tr ' ,' ' ' ) )
2929
30- echo -e " \n\nTesting the workspace, except lightning-transaction-sync."
30+ echo " ::endgroup::"
31+ echo " ::group::Testing the workspace, except lightning-transaction-sync."
3132cargo test --verbose --color always
3233
33- echo -e " \n\nTesting upgrade from prior versions of LDK"
34+ echo " ::endgroup::"
35+ echo " ::group::Testing upgrade from prior versions of LDK"
3436pushd lightning-tests
3537cargo test
3638popd
3739
38- echo -e " \n\nChecking and building docs for all workspace members individually..."
40+ echo " ::endgroup::"
41+ echo " ::group::Checking and building docs for all workspace members individually..."
3942for DIR in " ${WORKSPACE_MEMBERS[@]} " ; do
4043 cargo check -p " $DIR " --verbose --color always
4144 cargo doc -p " $DIR " --document-private-items
4245done
4346
44- echo -e " \n\nChecking and testing lightning with features"
47+ echo " ::endgroup::"
48+ echo " ::group::Checking and testing lightning with features"
4549cargo test -p lightning --verbose --color always --features dnssec
4650cargo check -p lightning --verbose --color always --features dnssec
4751cargo doc -p lightning --document-private-items --features dnssec
4852
49- echo -e " \n\nChecking and testing Block Sync Clients with features"
53+ echo " ::endgroup::"
54+ echo " ::group::Checking and testing Block Sync Clients with features"
5055
5156cargo test -p lightning-block-sync --verbose --color always --features rest-client
5257cargo check -p lightning-block-sync --verbose --color always --features rest-client
@@ -57,27 +62,32 @@ cargo check -p lightning-block-sync --verbose --color always --features rpc-clie
5762cargo test -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
5863cargo check -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
5964
60- echo -e " \n\nChecking and testing lightning-persister with features"
65+ echo " ::endgroup::"
66+ echo " ::group::Checking and testing lightning-persister with features"
6167cargo test -p lightning-persister --verbose --color always --features tokio
6268cargo check -p lightning-persister --verbose --color always --features tokio
6369cargo doc -p lightning-persister --document-private-items --features tokio
6470
65- echo -e " \n\nTest Custom Message Macros"
71+ echo " ::endgroup::"
72+ echo " ::group::Test Custom Message Macros"
6673cargo test -p lightning-custom-message --verbose --color always
6774[ " $CI_MINIMIZE_DISK_USAGE " != " " ] && cargo clean
6875
69- echo -e " \n\nTest backtrace-debug builds"
76+ echo " ::endgroup::"
77+ echo " ::group::Test backtrace-debug builds"
7078cargo test -p lightning --verbose --color always --features backtrace
7179
72- echo -e " \n\nTesting no_std builds"
80+ echo " ::endgroup::"
81+ echo " ::group::Testing no_std builds"
7382for DIR in lightning-invoice lightning-rapid-gossip-sync lightning-liquidity; do
7483 cargo test -p $DIR --verbose --color always --no-default-features
7584done
7685
7786cargo test -p lightning --verbose --color always --no-default-features
7887cargo test -p lightning-background-processor --verbose --color always --no-default-features
7988
80- echo -e " \n\nTesting c_bindings builds"
89+ echo " ::endgroup::"
90+ echo " ::group::Testing c_bindings builds"
8191# Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively
8292# disable doctests in `c_bindings` so we skip doctests entirely here.
8393RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always --lib --bins --tests
@@ -92,14 +102,16 @@ done
92102RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p lightning-background-processor --verbose --color always --no-default-features --lib --bins --tests
93103RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p lightning --verbose --color always --no-default-features --lib --bins --tests
94104
95- echo -e " \n\nTesting other crate-specific builds"
105+ echo " ::endgroup::"
106+ echo " ::group::Testing other crate-specific builds"
96107# Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
97108RUSTFLAGS=" $RUSTFLAGS --cfg=ldk_test_vectors" cargo test -p lightning --verbose --color always --no-default-features --features=std
98109# This one only works for lightning-invoice
99110# check that compile with no_std and serde works in lightning-invoice
100111cargo test -p lightning-invoice --verbose --color always --no-default-features --features serde
101112
102- echo -e " \n\nTesting no_std build on a downstream no-std crate"
113+ echo " ::endgroup::"
114+ echo " ::group::Testing no_std build on a downstream no-std crate"
103115# check no-std compatibility across dependencies
104116pushd no-std-check
105117cargo check --verbose --color always
@@ -120,11 +132,13 @@ if [ -f "$(which arm-none-eabi-gcc)" ]; then
120132 popd
121133fi
122134
123- echo -e " \n\nTest cfg-flag builds"
135+ echo " ::endgroup::"
136+ echo " ::group::Test cfg-flag builds"
124137RUSTFLAGS=" --cfg=taproot" cargo test --verbose --color always -p lightning
125138[ " $CI_MINIMIZE_DISK_USAGE " != " " ] && cargo clean
126139RUSTFLAGS=" --cfg=simple_close" cargo test --verbose --color always -p lightning
127140[ " $CI_MINIMIZE_DISK_USAGE " != " " ] && cargo clean
128141RUSTFLAGS=" --cfg=lsps1_service" cargo test --verbose --color always -p lightning-liquidity
129142[ " $CI_MINIMIZE_DISK_USAGE " != " " ] && cargo clean
130143RUSTFLAGS=" --cfg=peer_storage" cargo test --verbose --color always -p lightning
144+ echo " ::endgroup::"
0 commit comments