From b906528b7f266eac1dca1b17cdea3547f9052f8b Mon Sep 17 00:00:00 2001 From: Aabishkar KC Date: Fri, 7 Jun 2024 11:26:53 -0400 Subject: [PATCH] DYN-7098 Update ui_smoke_tests workflow (#15293) --- .github/workflows/ui_smoke_tests.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ui_smoke_tests.yml b/.github/workflows/ui_smoke_tests.yml index 00858c6b30c..23c42ba0e2d 100644 --- a/.github/workflows/ui_smoke_tests.yml +++ b/.github/workflows/ui_smoke_tests.yml @@ -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/test-reporter@v1.9.1 + 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