Skip to content

Commit 949db06

Browse files
committed
merge develop
2 parents 239aaf7 + e23b2ab commit 949db06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4509
-207
lines changed

.github/workflows/e2e.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ jobs:
3333
test_env: "test"
3434
release: "0.116.1"
3535
extra_bru_args: "--env-var HASH_ALGORITHM=sha256"
36+
37+
######################################
38+
# Funding Tx Verification Test Cases
39+
- workflow: "funding-tx-verification"
40+
test_env: "test"
41+
release: "0.116.1"
42+
extra_bru_args: "--env-var FUNDING_TX_VERIFICATION_CASE=remove_change"
43+
- workflow: "funding-tx-verification"
44+
test_env: "test"
45+
release: "0.116.1"
46+
extra_bru_args: "--env-var FUNDING_TX_VERIFICATION_CASE=modify_change"
47+
- workflow: "funding-tx-verification"
48+
test_env: "test"
49+
release: "0.116.1"
50+
extra_bru_args: "--env-var FUNDING_TX_VERIFICATION_CASE=fund_from_peer"
3651
name: e2e test for ${{ matrix.workflow }} --env ${{ matrix.test_env }} ${{ matrix.extra_bru_args }}
3752
runs-on: ubuntu-latest
3853
steps:
@@ -58,18 +73,16 @@ jobs:
5873
id: e2eTests
5974
run: |
6075
set -euo pipefail
61-
if [ ${{ matrix.workflow }} = "cross-chain-hub" ]; then
62-
./tests/deploy/lnd-init/setup-lnd.sh
63-
fi
76+
# Save matrix values to generate unique ID for upload-artifact
77+
echo '${{ toJSON(matrix) }}' > matrix.json
6478
6579
# Prebuild the program so that we can run the following script faster
6680
cargo build --locked
6781
cd ./tests/deploy/udt-init && cargo build --locked && cd -
68-
if [ ${{ matrix.workflow }} = "router-pay" ]; then
69-
export START_BOOTNODE=y
70-
fi
7182
export ON_GITHUB_ACTION=y
72-
./tests/nodes/start.sh &
83+
# Pass it to tests/funding-tx-builder as args
84+
export EXTRA_BRU_ARGS="${{ matrix.extra_bru_args }}"
85+
./tests/nodes/start.sh "e2e/${{ matrix.workflow }}" &
7386
7487
# Wait for the nodes to start, the initialization takes some time
7588
# check all the ports are open
@@ -125,8 +138,9 @@ jobs:
125138
# -n means we will exit when any of the background processes exits.
126139
# https://www.gnu.org/software/bash/manual/bash.html#index-wait
127140
wait -n
141+
128142
- uses: actions/upload-artifact@v4
129143
if: failure() && steps.e2eTests.outcome == 'failure'
130144
with:
131-
name: e2e-test-${{ matrix.workflow }}-logs
145+
name: e2e-test-${{ matrix.workflow }}-${{ hashFiles('matrix.json') }}-logs
132146
path: tests/nodes/*.log

Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/fiber-bin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fiber-bin"
3-
version = "0.6.0-rc2"
3+
version = "0.6.0-rc3"
44
edition = "2021"
55

66
[[bin]]

crates/fiber-lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build = "src/build.rs"
33
edition = "2021"
44
name = "fnn"
5-
version = "0.6.0-rc2"
5+
version = "0.6.0-rc3"
66

77
[lib]
88
crate-type = ["cdylib", "rlib"]

0 commit comments

Comments
 (0)