File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,13 +7,14 @@ concurrency:
77 cancel-in-progress : true
88
99jobs :
10- test- postgres-backend :
10+ postgres-backend-tests :
1111 strategy :
1212 fail-fast : false
1313 matrix :
1414 platform : [ ubuntu-latest ]
1515 toolchain : [ stable, 1.85.0 ] # 1.85.0 is the MSRV
1616 runs-on : ${{ matrix.platform }}
17+ timeout-minutes : 15
1718
1819 services :
1920 postgres :
3536 uses : actions/checkout@v3
3637 with :
3738 path : vss-server
39+ - name : Install Rust toolchain
40+ run : |
41+ rustup toolchain install ${{ matrix.toolchain }} --profile minimal
42+ rustup default ${{ matrix.toolchain }}
3843
3944 - name : Run postgres backend test suite
4045 run : |
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ concurrency:
77 cancel-in-progress : true
88
99jobs :
10- build-and-test :
10+ ldk-node-integration-tests :
1111 strategy :
1212 fail-fast : false
1313 matrix :
@@ -41,12 +41,21 @@ jobs:
4141 with :
4242 repository : lightningdevkit/ldk-node
4343 path : ldk-node
44+ - name : Install Rust toolchain
45+ run : |
46+ rustup toolchain install ${{ matrix.toolchain }} --profile minimal
47+ rustup default ${{ matrix.toolchain }}
4448
4549 - name : Build and Deploy VSS Server
4650 run : |
4751 cd vss-server/rust
4852 RUSTFLAGS="--cfg noop_authorizer" cargo build --no-default-features
4953 ./target/debug/vss-server server/vss-server-config.toml&
54+ - name : Pin packages to allow for MSRV
55+ if : " matrix.toolchain == '1.85.0'"
56+ run : |
57+ cd ldk-node
58+ cargo update -p idna_adapter --precise "1.2.0" --verbose # idna_adapter 1.2.1 uses ICU4X 2.2.0, requiring 1.86 and newer
5059 - name : Run LDK Node Integration tests
5160 run : |
5261 cd ldk-node
Original file line number Diff line number Diff line change 1- name : Ping Check
1+ name : Ping Tests
22
33on : [push, pull_request]
44
@@ -7,13 +7,14 @@ concurrency:
77 cancel-in-progress : true
88
99jobs :
10- ping-check :
10+ ping-tests :
1111 strategy :
1212 fail-fast : false
1313 matrix :
1414 platform : [ ubuntu-latest ]
1515 toolchain : [ stable, 1.85.0 ] # 1.85.0 is the MSRV
1616 runs-on : ${{ matrix.platform }}
17+ timeout-minutes : 15
1718
1819 services :
1920 postgres :
3334 steps :
3435 - name : Checkout code
3536 uses : actions/checkout@v3
37+ - name : Install Rust toolchain
38+ run : |
39+ rustup toolchain install ${{ matrix.toolchain }} --profile minimal --component rustfmt
40+ rustup default ${{ matrix.toolchain }}
3641 - name : Check formatting
37- run : rustup component add rustfmt && cd rust && cargo fmt --all -- --check
42+ run : cd rust && cargo fmt --all -- --check
3843 - name : Build and Deploy VSS Server
3944 run : |
4045 cd rust
Original file line number Diff line number Diff line change 1+ name : Server Tests
2+
3+ on : [push, pull_request]
4+
5+ concurrency :
6+ group : ${{ github.workflow }}-${{ github.ref }}
7+ cancel-in-progress : true
8+
9+ jobs :
10+ server-tests :
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ platform : [ ubuntu-latest ]
15+ toolchain : [ stable, 1.85.0 ] # 1.85.0 is the MSRV
16+ runs-on : ${{ matrix.platform }}
17+ timeout-minutes : 15
18+
19+ services :
20+ postgres :
21+ image : postgres:latest
22+ ports :
23+ - 5432:5432
24+ env :
25+ POSTGRES_DB : postgres
26+ POSTGRES_USER : postgres
27+ POSTGRES_PASSWORD : postgres
28+ options : >-
29+ --health-cmd pg_isready
30+ --health-interval 10s
31+ --health-timeout 5s
32+ --health-retries 5
33+
34+ steps :
35+ - name : Checkout code
36+ uses : actions/checkout@v3
37+ - name : Install Rust toolchain
38+ run : |
39+ rustup toolchain install ${{ matrix.toolchain }} --profile minimal
40+ rustup default ${{ matrix.toolchain }}
41+ - name : Build and Deploy VSS Server
42+ run : |
43+ cd rust
44+ RUSTFLAGS="--cfg noop_authorizer" cargo build --no-default-features
45+ ./target/debug/vss-server server/vss-server-config.toml&
46+ - name : Run the server tests
47+ run : |
48+ sleep 5
49+ cd rust/server
50+ RUSTFLAGS="--cfg vss_client_v050_compatibility" cargo test
51+ cargo update -p vss-client-ng@0.6.0 --verbose
52+ RUSTFLAGS="--cfg vss_client_main_compatibility" cargo test
You can’t perform that action at this time.
0 commit comments