Skip to content

Commit fcec5ff

Browse files
author
fmar
committed
chore: add Dockerfile for rust
1 parent 81d3da9 commit fcec5ff

File tree

19 files changed

+794
-1429
lines changed

19 files changed

+794
-1429
lines changed

.github/workflows/build-and-deploy-rust.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continuous Integration
1+
name: Ping Check
22

33
on: [push, pull_request]
44

@@ -7,8 +7,13 @@ concurrency:
77
cancel-in-progress: true
88

99
jobs:
10-
build-and-test:
11-
runs-on: ubuntu-latest
10+
ping-check:
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 }}
1217

1318
services:
1419
postgres:

.github/workflows/impl_tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Implementation 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+
test-postgres-backend:
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+
18+
services:
19+
postgres:
20+
image: postgres:latest
21+
ports:
22+
- 5432:5432
23+
env:
24+
POSTGRES_DB: postgres
25+
POSTGRES_USER: postgres
26+
POSTGRES_PASSWORD: postgres
27+
options: >-
28+
--health-cmd pg_isready
29+
--health-interval 10s
30+
--health-timeout 5s
31+
--health-retries 5
32+
33+
steps:
34+
- name: Checkout code
35+
uses: actions/checkout@v3
36+
with:
37+
path: vss-server
38+
39+
- name: Run postgres backend test suite
40+
run: |
41+
cd vss-server/rust/impls
42+
cargo test -- --test-threads=1

.github/workflows/ldk-node-integration.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ concurrency:
88

99
jobs:
1010
build-and-test:
11-
runs-on: ubuntu-latest
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 }}
1217

1318
services:
1419
postgres:
@@ -40,10 +45,10 @@ jobs:
4045
run: |
4146
cd vss-server/rust
4247
cargo build
43-
cargo run server/vss-server-config.toml&
48+
cargo run --no-default-features server/vss-server-config.toml&
4449
- name: Run LDK Node Integration tests
4550
run: |
4651
cd ldk-node
4752
export TEST_VSS_BASE_URL="http://localhost:8080/vss"
48-
RUSTFLAGS="--cfg vss_test" cargo test io::vss_store
49-
RUSTFLAGS="--cfg vss_test" cargo test --test integration_tests_vss
53+
RUSTFLAGS="--cfg vss_test" cargo test io::vss_store -- --test-threads=1
54+
RUSTFLAGS="--cfg vss_test" cargo test --test integration_tests_vss -- --test-threads=1

0 commit comments

Comments
 (0)