elements
elements copied to clipboard
test: Add integration testing workflow dispatcher
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
2:
A repository_dispatch event id triggered on Playback-testing side using Github’s API.
3:
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:
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:
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:
- Go to the ‘Settings’ tab on your repository.
- Continue to Secrets -> Actions in section “Security”
- 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.
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) |
Codecov Report
Merging #495 (7cb849b) into main (aed3c8d) will increase coverage by
0.05%
. The diff coverage is100.00%
.
@@ 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: |