-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (79 loc) · 2.86 KB
/
Copy pathuipath-tests.yml
File metadata and controls
90 lines (79 loc) · 2.86 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
# This is a basic workflow to help you get started with Actions
name: UiPath Tests
# Controls when the workflow will run
on:
# Triggers the workflow on call from other repository
workflow_call:
inputs:
projectFilePaths:
required: false
type: string
orchestratorUrl:
required: true
type: string
orchestratorFolder:
required: true
type: string
orchestratorTenant:
type: string
orchestratorApplicationScope:
type: string
organizationId:
type: string
environment:
type: string
secrets:
orchestratorApplicationId:
required: true
orchestratorApplicationSecret:
required: true
jobs:
# Run workflow analysis
analyze:
environment: ${{ inputs.environment }}
# The type of runner that the job will run on
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: Mikael-RnD/setup-uipath@v1
- uses: Mikael-RnD/UiPath-Analyze@v0
with:
projectFilePaths: ${{ inputs.projectFilePaths }}
orchestratorUrl: ${{ inputs.orchestratorUrl }}
orchestratorTenant: ${{ inputs.orchestratorTenant }}
orchestratorFolder: ${{ inputs.orchestratorFolder }}
orchestratorApplicationId: ${{ secrets.orchestratorApplicationId }}
orchestratorApplicationSecret: ${{ secrets.orchestratorApplicationSecret }}
orchestratorApplicationScope: ${{ inputs.orchestratorApplicationScope }}
orchestratorLogicalName: ${{ inputs.organizationId }}
# Run unit tests in project
test:
environment: ${{ inputs.environment }}
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: Mikael-RnD/setup-uipath@v1
- uses: Mikael-RnD/UiPath-Test@v0
with:
projectFilePaths: ${{ inputs.projectFilePaths }}
orchestratorUrl: ${{ inputs.orchestratorUrl }}
orchestratorTenant: ${{ inputs.orchestratorTenant }}
orchestratorFolder: ${{ inputs.orchestratorFolder }}
orchestratorApplicationId: ${{ secrets.orchestratorApplicationId }}
orchestratorApplicationSecret: ${{ secrets.orchestratorApplicationSecret }}
orchestratorApplicationScope: ${{ inputs.orchestratorApplicationScope }}
orchestratorLogicalName: ${{ inputs.organizationId }}
check-dependencies:
environment: ${{ inputs.environment }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: Mikael-RnD/uipath-check-prerelease-dependencies@main