Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add integration testing workflow dispatcher #495

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix repository url
ghbogarin committed Nov 9, 2022
commit 5151a4261d430d9341ca03fb251a20492d7ae8c0
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ jobs:
curl -X POST https://api.github.com/repos/muxinc/playback-testing/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.ACCESS_TOKEN }} \
--data '{"event_type": "Run integration tests", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'", "repositoryUrl": "https://api.github.com/repos/hernanr99/elements/dispatches", "players": "mux", "MUX_CDN_URL":"'${{ github.event.inputs.MUX_CDN_URL }}'" }}'
--data '{"event_type": "Run integration tests", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'", "repositoryUrl": "https://api.github.com/repos/muxinc/elements/dispatches", "players": "mux", "MUX_CDN_URL":"'${{ github.event.inputs.MUX_CDN_URL }}'" }}'
echo "Integration tests will be run on a separate repository. Once results are ready, a workflow will be executed that will display the results."
- name: Show test results from external repository
if: github.event.action == 'Test results from external repository'