Skip to content

Commit

Permalink
Create TestExecute Simple Test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-M-Johnson authored Sep 19, 2024
1 parent 7b7c91d commit 4a48d6e
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/TestExecute Simple Test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: TestExecute Simple Test
run-name: TestExecute run from GitHub Action (${{ github.actor }})
on:
push:
workflow_dispatch:
inputs:
project:
type: choice
description: Project to be executed
options:
- Mobile
- Web
jobs:
DownloadInstallAndRunTE:
name: Install and Run TestExecute (${{ github.actor }})
timeout-minutes: 30
runs-on: windows-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- name: Job Startup
run: |
echo "Starting job [Event=${{ github.event_name }}]"
echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- name: Download TestExecute
run: |
Invoke-WebRequest -Uri "${{ vars.TEST_EXECUTE_DOWNLOAD_URL }}" -OutFile ".\TE.exe"
echo "TestExecute downloaded - ${{ vars.TEST_EXECUTE_DOWNLOAD_URL }}"
- name: Show working folder content
run: dir
shell: cmd
- name: Install TestExecute
run: .\TE.exe -SilentInstall
shell: cmd
- name: Env Variable for TestExecute bin folder
run: set PATH_TE="${{ vars.TEST_EXECUTE_BIN }}"
shell: cmd
- name: Launch TestExecute
run: .\test-runner.bat ${{ secrets.TEST_EXECUTE_ACCESS_KEY }} ${{ inputs.project || 'Web' }}
shell: cmd
- name: JUnit Report from TestExecute
uses: dorny/[email protected]
if: always()
with:
name: TestComplete JUnit Report
path: logs/runlog.xml
reporter: java-junit
- name: GitHub Action Summary
if: always()
run: |
type summary.md | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append

0 comments on commit 4a48d6e

Please sign in to comment.