Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ concurrency:
cancel-in-progress: true

jobs:
test-postgres-backend:
postgres-backend-tests:
strategy:
fail-fast: false
matrix:
platform: [ ubuntu-latest ]
toolchain: [ stable, 1.85.0 ] # 1.85.0 is the MSRV
runs-on: ${{ matrix.platform }}
timeout-minutes: 15

services:
postgres:
Expand All @@ -35,6 +36,10 @@ jobs:
uses: actions/checkout@v3
with:
path: vss-server
- name: Install Rust toolchain
run: |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal
rustup default ${{ matrix.toolchain }}

- name: Run postgres backend test suite
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ concurrency:
cancel-in-progress: true

jobs:
build-and-test:
ldk-node-integration-tests:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -41,12 +41,21 @@ jobs:
with:
repository: lightningdevkit/ldk-node
path: ldk-node
- name: Install Rust toolchain
run: |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal
rustup default ${{ matrix.toolchain }}

- name: Build and Deploy VSS Server
run: |
cd vss-server/rust
RUSTFLAGS="--cfg noop_authorizer" cargo build --no-default-features
./target/debug/vss-server server/vss-server-config.toml&
- name: Pin packages to allow for MSRV
if: "matrix.toolchain == '1.85.0'"
run: |
cd ldk-node
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
- name: Run LDK Node Integration tests
run: |
cd ldk-node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ping Check
name: Ping Tests

on: [push, pull_request]

Expand All @@ -7,13 +7,14 @@ concurrency:
cancel-in-progress: true

jobs:
ping-check:
ping-tests:
strategy:
fail-fast: false
matrix:
platform: [ ubuntu-latest ]
toolchain: [ stable, 1.85.0 ] # 1.85.0 is the MSRV
runs-on: ${{ matrix.platform }}
timeout-minutes: 15

services:
postgres:
Expand All @@ -33,8 +34,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Rust toolchain
run: |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --component rustfmt
rustup default ${{ matrix.toolchain }}
- name: Check formatting
run: rustup component add rustfmt && cd rust && cargo fmt --all -- --check
run: cd rust && cargo fmt --all -- --check
- name: Build and Deploy VSS Server
run: |
cd rust
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/server-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Server Tests

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
server-tests:
strategy:
fail-fast: false
matrix:
platform: [ ubuntu-latest ]
toolchain: [ stable, 1.85.0 ] # 1.85.0 is the MSRV
runs-on: ${{ matrix.platform }}
timeout-minutes: 15

services:
postgres:
image: postgres:latest
ports:
- 5432:5432
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Rust toolchain
run: |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal
rustup default ${{ matrix.toolchain }}
- name: Build and Deploy VSS Server
run: |
cd rust
RUSTFLAGS="--cfg noop_authorizer" cargo build --no-default-features
./target/debug/vss-server server/vss-server-config.toml&
- name: Run the server tests
run: |
sleep 5
cd rust/server
cargo test
Loading
Loading