TestExecute run from GitHub Action (Kevin-M-Johnson) #141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TestExecute Simple Test | |
run-name: TestExecute run from GitHub Action (${{ github.actor }}) | |
on: | |
workflow_dispatch: | |
inputs: | |
project: | |
type: choice | |
description: Project to be executed | |
options: | |
- HeadStart | |
- Web | |
- Mobile | |
jobs: | |
DownloadInstallAndRunTE: | |
name: Install and Run TestExecute (${{ github.actor }}) | |
timeout-minutes: 30 | |
runs-on: windows-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 |