-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (51 loc) · 1.65 KB
/
TestExecute Simple Test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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