Skip to content

Commit

Permalink
ci: nohup out
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Oct 14, 2024
1 parent 7f343a4 commit 474d3e5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
node-version: '20'
- run: docker compose up -d
- run: npm i
- run: npm run start --prefix broker-webhook &
- run: nohup npm run start --prefix broker-webhook &
- run: npm run create-webhook --prefix broker-webhook
- run: npm test --prefix consumer
- run: npm run pact:publish --prefix consumer
- run: sleep 30
- run: sleep 30
- run: npm run webhook-logs --prefix broker-webhook
- run: cat nohup.out
4 changes: 2 additions & 2 deletions broker-webhook/create_webhook.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
curl http://localhost:8000/webhooks \
-X POST --user pact_workshop:pact_workshop \
curl http://localhost:8000/webhooks/204430af-f8c8-4feb-8135-f027df8ecf34 \
-X PUT --user pact_workshop:pact_workshop \
-H "Content-Type: application/json" -d @broker-create-body.json -v
3 changes: 2 additions & 1 deletion broker-webhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "index.js",
"scripts": {
"start": "node server.js",
"create-webhook": "./create_webhook.sh"
"create-webhook": "./create_webhook.sh",
"webhook-logs": "./weblook_logs.sh"
},
"author": "",
"license": "ISC",
Expand Down
3 changes: 3 additions & 0 deletions broker-webhook/weblook_logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl 'http://127.0.0.1:8000/triggered-webhooks/34bc31c7-5546-4631-a069-81e0970c3dc4/logs' \
-H 'Accept: */*' \
--user pact_workshop:pact_workshop

0 comments on commit 474d3e5

Please sign in to comment.