forked from zedy-wj/content-validation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-validation.yml
85 lines (73 loc) · 2.15 KB
/
content-validation.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
78
79
80
81
82
83
84
85
name: Run Content Validation Tool
trigger: none
pool:
vmImage: ubuntu-latest
parameters:
- name: ServiceName
displayName: Service Name
type: string
default: 'App Configuration'
- name: PackageName
displayName: Package Name
type: string
default: 'azure-appconfiguration'
variables:
- name: DotNetSdkVersion
value: '8.0.x'
jobs:
- job: ContentValidation
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
packageType: 'sdk'
version: $(DotNetSdkVersion)
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: DotNetCoreCLI@2
displayName: New Manifest for tool
inputs:
command: custom
custom: 'new '
arguments: tool-manifest
- task: DotNetCoreCLI@2
displayName: Install Playwright CLI
inputs:
command: custom
custom: 'tool '
arguments: install Microsoft.Playwright.CLI
- task: DotNetCoreCLI@2
displayName: Build all projects and libraries
inputs:
command: 'build'
projects: 'content-validation.sln'
- task: DotNetCoreCLI@2
displayName: Run Playwright Install
inputs:
command: custom
custom: 'tool '
arguments: run playwright install
- task: DotNetCoreCLI@2
displayName: Build get data source project
inputs:
command: 'build'
projects: 'DataSource/DataSource.csproj'
- task: DotNetCoreCLI@2
displayName: Get test data source
env:
ServiceName: ${{ parameters.ServiceName }}
PackageName: ${{ parameters.PackageName }}
inputs:
command: 'run'
workingDirectory: '$(System.DefaultWorkingDirectory)/DataSource'
- task: DotNetCoreCLI@2
displayName: Build test project
inputs:
command: 'build'
projects: 'ContentValidation.Test/ContentValidation.Test.csproj'
- task: DotNetCoreCLI@2
displayName: Run test case
inputs:
command: 'test'
projects: 'ContentValidation.Test/ContentValidation.Test.csproj'
arguments: '-e BROWSER=chromium'
testRunTitle: 'Content Validation Testing Start'