Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Oct 14, 2024
1 parent 2cb89fe commit e8efbc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
- run: npm run create-webhook --prefix broker-webhook
- run: npm test --prefix consumer
- run: |
logs_addr=$(npm run pact:publish --prefix consumer | grep "View logs at" | awk -F' ' '{print $4}')
curl $logs_addr --user pact_workshop:pact_workshop -H "Accept: */*"
npm run pact:publish --prefix consumer > publish.out
cat publish.out | grep "View logs at" | awk -F' ' '{print $4}'
curl $(cat publish.out | grep "View logs at" | awk -F' ' '{print $4}') --user pact_workshop:pact_workshop -H "Accept: */*"
- run: sleep 15
- run: cat out.log

0 comments on commit e8efbc7

Please sign in to comment.