-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (75 loc) · 2.73 KB
/
e2e.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: e2e
on:
workflow_dispatch:
inputs:
Url:
description: The target environment API URL
required: true
default: https://ibmrpaqa1api.rpa.ibm.com/v1.0/
type: string
Region:
description: The target environment Region
required: true
default: QA2_IBMRPA
type: string
Tenant:
description: The target environment Tenant
required: true
default: 5000
type: number
ComputerGroup:
description: The target computer group name for unattended deployment
required: true
default: C16472V1
type: string
ChatHandle:
description: The target chat handle for chatbot deployment
required: true
default: ibmrpaqa1wdgchatintegration
type: string
ChatComputers:
description: The target comma-separated computers for chatbot deployment
required: true
default: C16472V1
type: string
Username:
description: The target environment Username
required: true
type: string
Password:
description: The target environment Password
required: true
type: string
jobs:
e2e:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet publish ./src/Joba.IBM.RPA.Cli/Joba.IBM.RPA.Cli.csproj -c Release -f net8.0 -r win-x64 -p:PublishSingleFile=true -o ./publish --self-contained
- name: e2e tests
run: dotnet test ./src/Tests/Joba.IBM.RPA.Cli.Tests --filter "Category=e2e" --verbosity normal
env:
RPA_EXECUTABLE_PATH: ${{github.workspace}}/publish/rpa.exe
E2E_SOURCE_URL: ${{ vars.E2E_SOURCE_URL }}
E2E_SOURCE_REGION: ${{ vars.E2E_SOURCE_REGION }}
E2E_SOURCE_TENANT: ${{ vars.E2E_SOURCE_TENANT }}
E2E_SOURCE_USERNAME: ${{ vars.E2E_SOURCE_USERNAME }}
RPA_SECRET_source: ${{ secrets.DEV_TENANT_PASSWORD }}
E2E_TARGET_URL: ${{ inputs.Url }}
E2E_TARGET_REGION: ${{ inputs.Region }}
E2E_TARGET_TENANT: ${{ inputs.Tenant }}
E2E_TARGET_USERNAME: ${{ inputs.Username }}
E2E_TARGET_COMPUTERGROUP: ${{ inputs.ComputerGroup }}
E2E_TARGET_CHAT_HANDLE: ${{ inputs.ChatHandle }}
E2E_TARGET_CHAT_COMPUTERS: ${{ inputs.ChatComputers }}
RPA_SECRET_target: ${{ inputs.Password }}
E2E_PACKAGE_URL: ${{ vars.E2E_PACKAGE_URL }}
E2E_PACKAGE_REGION: ${{ vars.E2E_PACKAGE_REGION }}
E2E_PACKAGE_TENANT: ${{ vars.E2E_PACKAGE_TENANT }}
E2E_PACKAGE_USERNAME: ${{ vars.E2E_PACKAGE_USERNAME }}
RPA_SECRET_package: ${{ secrets.JOBA_TENANT_PASSWORD }}