Skip to content

Commit 4419953

Browse files
committed
Switch to use Rust VSS server in CI
Since we just deprecated the Java version of the VSS server, we here switch our CI over to use the Rust version.
1 parent 4cbd1bb commit 4419953

File tree

1 file changed

+5
-46
lines changed

1 file changed

+5
-46
lines changed

.github/workflows/vss-integration.yml

Lines changed: 5 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
env:
1919
POSTGRES_DB: postgres
2020
POSTGRES_USER: postgres
21-
POSTGRES_PASSWORD: YOU_MUST_CHANGE_THIS_PASSWORD
21+
POSTGRES_PASSWORD: postgres
2222
options: >-
2323
--health-cmd pg_isready
2424
--health-interval 10s
@@ -36,54 +36,13 @@ jobs:
3636
repository: lightningdevkit/vss-server
3737
path: vss-server
3838

39-
- name: Set up Java
40-
uses: actions/setup-java@v3
41-
with:
42-
distribution: 'corretto'
43-
java-version: '17'
44-
45-
- name: Start Tomcat
39+
- name: Build and Deploy VSS Server
4640
run: |
47-
docker run -d --network=host --name tomcat tomcat:latest
48-
49-
- name: Setup Gradle
50-
uses: gradle/gradle-build-action@v2
51-
with:
52-
gradle-version: release-candidate
53-
54-
- name: Create database table
55-
run: |
56-
psql -h localhost -U postgres -d postgres -f ./vss-server/java/app/src/main/java/org/vss/impl/postgres/sql/v0_create_vss_db.sql
57-
env:
58-
PGPASSWORD: YOU_MUST_CHANGE_THIS_PASSWORD
59-
60-
- name: Build and Deploy VSS
61-
run: |
62-
# Print Info
63-
java -version
64-
gradle --version
65-
66-
GRADLE_VERSION=$(gradle --version | awk '/^Gradle/ {print $2}' | head -1)
67-
if [ -z "$GRADLE_VERSION" ]; then
68-
echo "Error: Failed to extract Gradle version." >&2
69-
exit 1
70-
fi
71-
echo "Extracted Gradle Version: $GRADLE_VERSION"
72-
73-
cd vss-server/java
74-
gradle wrapper --gradle-version $GRADLE_VERSION
75-
./gradlew --version
76-
./gradlew build
77-
78-
docker cp app/build/libs/vss-1.0.war tomcat:/usr/local/tomcat/webapps/vss.war
79-
cd ../
80-
- name: Run VSS Integration tests against vss-instance.
41+
cd vss-server/rust
42+
cargo run server/vss-server-config.toml&
43+
- name: Run VSS Integration tests
8144
run: |
8245
cd ldk-node
8346
export TEST_VSS_BASE_URL="http://localhost:8080/vss"
8447
RUSTFLAGS="--cfg vss_test" cargo build --verbose --color always
8548
RUSTFLAGS="--cfg vss_test" cargo test --test integration_tests_vss
86-
87-
- name: Cleanup
88-
run: |
89-
docker stop tomcat && docker rm tomcat

0 commit comments

Comments
 (0)