Skip to content

Commit 551fdfb

Browse files
committed
Use Rust version in CI
1 parent 332b53c commit 551fdfb

File tree

2 files changed

+48
-86
lines changed

2 files changed

+48
-86
lines changed

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

Lines changed: 0 additions & 86 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Continuous Integration
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
services:
14+
postgres:
15+
image: postgres:latest
16+
ports:
17+
- 5432:5432
18+
env:
19+
POSTGRES_DB: postgres
20+
POSTGRES_USER: postgres
21+
POSTGRES_PASSWORD: postgres
22+
options: >-
23+
--health-cmd pg_isready
24+
--health-interval 10s
25+
--health-timeout 5s
26+
--health-retries 5
27+
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v3
31+
32+
- name: Build and Deploy VSS Server
33+
run: |
34+
cd rust
35+
cargo build
36+
cargo run server/vss-server-config.toml&
37+
38+
- name: Hit endpoint to verify service is up
39+
run: |
40+
sleep 5
41+
42+
# Put request with store='storeId' and key=k1
43+
hex=0A0773746F726549641A150A026B3110FFFFFFFFFFFFFFFFFF011A046B317631
44+
curl --data-binary "$(echo "$hex" | xxd -r -p)" http://localhost:8080/vss/putObjects
45+
46+
# Get request with store='storeId' and key=k1
47+
hex=0A0773746F7265496412026B31
48+
curl --data-binary "$(echo "$hex" | xxd -r -p)" http://localhost:8080/vss/getObject

0 commit comments

Comments
 (0)