Skip to content

UI Smoke Tests

UI Smoke Tests #331

name: UI Smoke Tests
on:
workflow_run:
workflows:
- DynamoAllNet6.0-Build
types:
- completed
env:
TEST_EXECUTE_DOWNLOAD_URL: https://downloads.smartbear.com/TestExecute1552SLM.exe
ACTOR: ${{ github.actor }}
WORKFLOW_ID: ${{ github.event.workflow_run.workflow_id }}
RUN_NAME: ${{ github.event.workflow_run.name }}
RUN_URL: ${{ github.event.workflow_run.html_url }}
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
PR_URL: ${{ github.event.workflow_run.pull_requests[0].html_url }}
jobs:
ui_smoke_tests:
name: UI Smoke Tests
timeout-minutes: 60
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: DynamoDS/DynamoTestCompleteTests
token: ${{ secrets.DYNAMO_TESTS_TOKEN }}
ref: master
- name: Download TestExecute
run: Invoke-WebRequest -Uri "${{ env.TEST_EXECUTE_DOWNLOAD_URL }}" -OutFile ".\TE.exe"
- name: Install TestExecute
shell: cmd
run: .\TE.exe -SilentInstall
- name: Download Artifact
uses: dawidd6/action-download-artifact@v2
with:
name: DynamoSandbox
workflow: ${{ env.WORKFLOW_ID }}
path: ${{ github.workspace }}\build
- name: Run UI Smoke Tests
shell: cmd
run: .github\scripts\run_tests.bat ${{ secrets.TEST_EXECUTE_ACCESS_KEY }} Dynamo\Dynamo.pjs DynamoSandbox SmokeTests
- name: UI Smoke Tests Report
uses: dorny/[email protected]
if: always()
with:
name: UI Smoke Test Report
path: reports/report.xml
reporter: java-junit
- name: Summary
if: always()
run: |
Get-Content summary.md >> $env:GITHUB_STEP_SUMMARY
Write-Output "Actor: @${{ env.ACTOR }}" >> $env:GITHUB_STEP_SUMMARY
Write-Output "Workflow Run: [${{ env.RUN_NAME }}](${{ env.RUN_URL }})" >> $env:GITHUB_STEP_SUMMARY
Write-Output "Pull Request: [${{ env.PR_NUMBER }}](${{ env.PR_URL }})" >> $env:GITHUB_STEP_SUMMARY