File tree Expand file tree Collapse file tree 2 files changed +48
-86
lines changed Expand file tree Collapse file tree 2 files changed +48
-86
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments