diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea47680..e3e7dab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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