Skip to content

Commit 9aad4b5

Browse files
committed
ci: Add matrix strategy for VSS authorizer variants
Run VSS integration tests against multiple server authorizer configurations (noop, sigs, jwt). Each matrix job builds the vss-server with the appropriate flags or features and passes the corresponding cfg flag to the test runner. - Use release builds for vss-server - Add startup delay before running tests - Pass authorizer-specific cfg flags for future test differentiation Pending RSA keypair generation addressed in following commit
1 parent 80fb49b commit 9aad4b5

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/vss-integration.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ concurrency:
99
jobs:
1010
build-and-test:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
authorizer: [noop, sigs, jwt]
1215

1316
services:
1417
postgres:
@@ -39,10 +42,19 @@ jobs:
3942
- name: Build and Deploy VSS Server
4043
run: |
4144
cd vss-server/rust
42-
cargo run server/vss-server-config.toml&
43-
- name: Run VSS Integration tests
45+
if [ "${{ matrix.authorizer }}" == "noop" ]; then
46+
RUSTFLAGS="--cfg noop_authorizer" cargo build --release --no-default-features
47+
elif [ "${{ matrix.authorizer }}" == "jwt" ]; then
48+
# Todo: Generate RSA keypair, inject into config
49+
cargo build --release
50+
else
51+
cargo build --release
52+
fi
53+
cargo run --release -- server/vss-server-config.toml &
54+
sleep 2
55+
- name: Run VSS Integration tests for ${{ matrix.authorizer }}
4456
run: |
4557
cd ldk-node
4658
export TEST_VSS_BASE_URL="http://localhost:8080/vss"
47-
RUSTFLAGS="--cfg vss_test" cargo test io::vss_store
48-
RUSTFLAGS="--cfg vss_test --cfg cycle_tests" cargo test --test integration_tests_vss
59+
RUSTFLAGS="--cfg vss_test --cfg ${{ matrix.authorizer }}_auth_test" cargo test io::vss_store
60+
RUSTFLAGS="--cfg vss_test --cfg cycle_tests --cfg ${{ matrix.authorizer }}_auth_test" cargo test --test integration_tests_vss

0 commit comments

Comments
 (0)