We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8e6939 commit 475b5adCopy full SHA for 475b5ad
.github/workflows/ci.yml
@@ -60,6 +60,8 @@ jobs:
60
- name: Start Server and Run Tests
61
env:
62
EXPRESS_JS_PORT: 3000
63
+ XML_RPC_PORT: 9090
64
+ GRAPHQL_PORT: 4000
65
SQL_LOCAL_CONN_URL: localhost
66
SQL_USERNAME: root
67
SQL_PASSWORD: mysecretpassword
@@ -71,11 +73,17 @@ jobs:
71
73
PID=$!
72
74
echo "Server started with PID $PID"
75
- # Wait for server to be ready (swagger gen takes time)
- sleep 10
76
+ # Wait for server to be ready (using wait-on)
77
+ npx wait-on tcp:3000 --timeout 60000
78
79
# Run tests
80
npm run test:vulnerabilities
81
+ EXIT_CODE=$?
82
83
# Kill server
84
kill $PID
85
+
86
+ # Display logs
87
+ cat app.log
88
89
+ exit $EXIT_CODE
0 commit comments