elements icon indicating copy to clipboard operation
elements copied to clipboard

test: Add integration testing workflow dispatcher

Open ghbogarin opened this issue 2 years ago • 2 comments

Created a workflow dispatcher that takes a mux-player version as an input and runs tests on that version of the player. Tests run on an action at playback-testing repository (private) and once they are completed, a workflow execution is triggered on mux-elements side to display the results.

1: Input Mux-Player version and click on Run Workflow image

2: image A repository_dispatch event id triggered on Playback-testing side using Github’s API.

3: image Once tests are completed on playback-testing side, a repository_dispatch event is triggered on Mux-Elements using Github API, sending the test results to Mux-Elements.

4. Summary is used to display test results:

image

Configuration: For communication between the repositories a personal access token is needed (an account with access to the repository to be triggered is needed). The steps on this link can be followed to generate the token. In the scope, select Workflow:

image

Once the token is generated, this token will have to be added as an action secret with the name ‘ACCESS_TOKEN’. To do that, follow these steps:

  1. Go to the ‘Settings’ tab on your repository.
  2. Continue to Secrets -> Actions in section “Security”
  3. Finally create a new repository secret with the name ‘ACCESS_TOKEN’ and add the generated token.

Notes: A token with name ‘ACCESS_TOKEN’ must be in both repositories. It's already set up on Playback-Testing.

ghbogarin avatar Nov 09 '22 18:11 ghbogarin

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
elements-demo-create-react-app ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 9:49PM (UTC)
elements-demo-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 9:49PM (UTC)
elements-demo-svelte-kit ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 9:49PM (UTC)
elements-demo-vanilla ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 9:49PM (UTC)
elements-demo-vue ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 9:49PM (UTC)

vercel[bot] avatar Nov 09 '22 18:11 vercel[bot]

Codecov Report

Merging #495 (7cb849b) into main (aed3c8d) will increase coverage by 0.05%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #495      +/-   ##
==========================================
+ Coverage   84.67%   84.72%   +0.05%     
==========================================
  Files          40       40              
  Lines        7476     7504      +28     
  Branches      391      391              
==========================================
+ Hits         6330     6358      +28     
  Misses       1143     1143              
  Partials        3        3              
Impacted Files Coverage Δ
packages/mux-player/src/index.ts 76.01% <100.00%> (+0.53%) :arrow_up:

codecov[bot] avatar Nov 10 '22 20:11 codecov[bot]