Skip to content

Commit

Permalink
DYN-7098 Update ui_smoke_tests workflow (DynamoDS#15293)
Browse files Browse the repository at this point in the history
  • Loading branch information
avidit authored Jun 7, 2024
1 parent 80374fc commit b906528
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/ui_smoke_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit b906528

Please sign in to comment.