forked from DynamoDS/Dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DYN-7098 Update ui_smoke_tests workflow (DynamoDS#15293)
- Loading branch information
Showing
1 changed file
with
9 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
repository: DynamoDS/DynamoTestCompleteTests | ||
token: ${{ secrets.DYNAMO_TESTS_TOKEN }} | ||
|
@@ -33,14 +33,14 @@ jobs: | |
shell: cmd | ||
run: .\TE.exe -SilentInstall | ||
- name: Download Build Artifact | ||
uses: dawidd6/action-download-artifact@v3 | ||
uses: dawidd6/action-download-artifact@deb3bb83256a78589fef6a7b942e5f2573ad7c13 # v5 | ||
with: | ||
name: DynamoSandbox | ||
workflow: ${{ env.WORKFLOW_RUN_WORKFLOW_ID }} | ||
run_id: ${{ env.WORKFLOW_RUN_ID }} | ||
path: ${{ github.workspace }}\build | ||
- name: Download Pull Request Artifact | ||
uses: dawidd6/action-download-artifact@v3 | ||
uses: dawidd6/action-download-artifact@deb3bb83256a78589fef6a7b942e5f2573ad7c13 # v5 | ||
with: | ||
name: pr_data | ||
workflow: ${{ env.WORKFLOW_RUN_WORKFLOW_ID }} | ||
|
@@ -50,13 +50,13 @@ jobs: | |
run: | | ||
"PR_NUMBER=$(Get-Content -Path ${{ github.workspace }}\pr\pr_number.txt)" | Out-File -FilePath $env:GITHUB_ENV -Append | ||
"CHECK_NAME=$("UI Smoke Tests", $($env:WORKFLOW_RUN_NAME -Split " ")[-1] -Join " - ")" | Out-File -FilePath $env:GITHUB_ENV -Append | ||
- name: Run UI Smoke Tests | ||
- name: Run Tests | ||
shell: cmd | ||
run: .\utils\run_tests.bat ${{ secrets.TEST_EXECUTE_ACCESS_KEY }} Dynamo\Dynamo.pjs DynamoSandbox SmokeTests ${{ github.workspace }}\build | ||
run: .\utils\run_tests.bat ${{ secrets.SMARTBEAR_ACCESS_KEY }} Dynamo\Dynamo.pjs DynamoSandbox SmokeTests ${{ github.workspace }}\build | ||
- name: Publish Test Report | ||
id: test_report | ||
if: always() | ||
uses: dorny/[email protected] | ||
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1 | ||
with: | ||
name: ${{ env.CHECK_NAME }} | ||
path: reports/report.xml | ||
|
@@ -82,8 +82,6 @@ jobs: | |
- name: Create Pull Request Comment | ||
if: always() | ||
id: create_comment | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
$pr_comment=@" | ||
## UI Smoke Tests | ||
|
@@ -95,7 +93,7 @@ jobs: | |
$pr_comment | Out-File -FilePath pr_comment.md | ||
- name: Find Comment | ||
if: env.PR_NUMBER != '' | ||
uses: peter-evans/find-comment@v3 | ||
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0 | ||
id: find_comment | ||
with: | ||
issue-number: ${{ env.PR_NUMBER }} | ||
|
@@ -104,13 +102,13 @@ jobs: | |
direction: last | ||
- name: Create comment | ||
if: env.PR_NUMBER != '' && steps.find_comment.outputs.comment-id == '' | ||
uses: peter-evans/create-or-update-comment@v4 | ||
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 | ||
with: | ||
issue-number: ${{ env.PR_NUMBER }} | ||
body-path: pr_comment.md | ||
- name: Update comment | ||
if: env.PR_NUMBER != '' && steps.find_comment.outputs.comment-id != '' | ||
uses: peter-evans/create-or-update-comment@v4 | ||
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 | ||
with: | ||
comment-id: ${{ steps.find_comment.outputs.comment-id }} | ||
edit-mode: replace | ||
|