-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into sergei/trah-3679/…
…modal-after-signup
- Loading branch information
Showing
328 changed files
with
5,363 additions
and
3,041 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,80 @@ | ||
name: Run Smoke Tests - Manually | ||
run-name: Manual run of ${{ github.event.inputs.suite }} tests on ${{ github.event.inputs.testlink || github.event.inputs.environment }} in ${{ github.event.inputs.qabox }} ${{ github.event.inputs.appid }} | ||
run-name: Manual run of tests | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ilabel: | ||
type: choice | ||
description: Run smoke or full test suite | ||
options: | ||
- P2P | ||
- dbot, Traders | ||
- Traders | ||
- Wallets | ||
- dbot | ||
idraft: | ||
type: choice | ||
description: Draft | ||
options: | ||
- 'true' | ||
- 'false' | ||
iappRegUrl: | ||
type: choice | ||
description: Select the Url for a specific PR | ||
options: | ||
- https://deriv-app-git-fork-maryia-matskevich-deriv-maryia-bot-1913.binary.sx/ | ||
- https://deriv-app-git-fork-suisin-deriv-suisin-upm1116addkhmerlanguage.binary.sx | ||
iissue_number: | ||
type: choice | ||
description: Issue Number | ||
options: | ||
- '15719' | ||
- '15714' | ||
iuser_name: | ||
type: choice | ||
description: User name | ||
options: | ||
- maryia-deriv | ||
- suisin-deriv | ||
|
||
jobs: | ||
trigger-workflow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger another deriv-app smoke tests from regentmarkets | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
github.actions.createWorkflowDispatch({ | ||
owner: 'regentmarkets', | ||
repo: 'e2e-deriv-app', | ||
workflow_id: 'E2E_Run_v2.yml', | ||
ref: 'master' | ||
}) | ||
|
||
- name: Set env vars | ||
id: set-env-vars | ||
run: | | ||
if [[ "${{ github.event.inputs.ilabel }}" == *"dbot"* ]]; then | ||
echo "TEST_SUITE=dbot" >> $GITHUB_ENV | ||
elif [[ "${{ github.event.inputs.ilabel }}" == *"P2P"* ]]; then | ||
echo "TEST_SUITE=P2P" >> $GITHUB_ENV | ||
elif [[ "${{ github.event.inputs.ilabel }}" == *"Wallets"* ]]; then | ||
echo "TEST_SUITE=Wallets" >> $GITHUB_ENV | ||
else | ||
echo "TEST_SUITE=<do not run>" >> $GITHUB_ENV | ||
fi | ||
- name: Trigger another deriv-app smoke tests from regentmarkets | ||
if: ${{ github.event.inputs.idraft == 'false' && env.TEST_SUITE != '<do not run>' }} | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.E2E_WORKFLOW_TOKEN }} | ||
script: | | ||
const workflowInputs = { | ||
environment: '${{ secrets.E2E_WORKFLOW_ENV }}', | ||
suite: '${{ env.TEST_SUITE }}', | ||
appRegUrl: '${{ github.event.inputs.iappRegUrl }}', | ||
issue_number: '${{ github.event.inputs.iissue_number }}', | ||
user_name: '${{ github.event.inputs.iuser_name }}' | ||
}; | ||
const response = await github.rest.actions.createWorkflowDispatch({ | ||
owner: 'regentmarkets', | ||
repo: 'e2e-deriv-app', | ||
workflow_id: 'E2E_Run_PR.yml', | ||
ref: 'mark/pr-commit-v2', | ||
inputs: workflowInputs | ||
}); | ||
console.log('Workflow dispatched successfully:', response); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.