Skip to content

Commit

Permalink
Add test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
avidit committed Oct 24, 2023
1 parent 77570e6 commit 281cce1
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/dynamoAllNet6.0_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,3 @@ jobs:
path: ${{ github.workspace }}\Dynamo\bin\AnyCPU\Release
if-no-files-found: warn
retention-days: 3
- name: Repository Dispatch
if: github.event.pull_request.merged == true
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.DYNAMO_TESTS_TOKEN }}
repository: DynamoDS/DynamoTestCompleteTests
event-type: build-completed
client-payload: '{"artifact_name": "${{ env.ARTIFACT_NAME }}", "run_id": "${{ github.run_id }}"}'
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test

on:
workflow_run:
workflows:
- dynamoAllNet6.0_build.yml
types:
- completed

env:
TEST_EXECUTE_DOWNLOAD_URL: https://downloads.smartbear.com/TestExecute1552SLM.exe

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: ${{ sectrets.DYNAMO_TESTS_TOKEN }}
- 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:
workflow: ${{ github.event.workflow_run.workflow_id }}
path: ${{ github.workspace }}\build
- name: Run Tests
shell: cmd
run: .github\scripts\run_tests.bat ${{ secrets.TEST_EXECUTE_ACCESS_KEY }} Dynamo\Dynamo.pjs DynamoSandbox SmokeTests
- name: Test Report
uses: dorny/test-reporter@v1.6.0
if: always()
with:
name: UI Smoke Test Report
path: reports/report.xml
reporter: java-junit
- name: Action Summary
if: always()
run: |
type summary.md | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append

0 comments on commit 281cce1

Please sign in to comment.