-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/46 update form interface [+semver: feature] (#49)
* Remove IsDiaplayed property from Form, update core version * Update pipeline * Fix pipeline * Fix tests * Fix test * Update pipeline * Fix test * Update test * Try to fix test * Try to fix test
- Loading branch information
Showing
10 changed files
with
120 additions
and
129 deletions.
There are no files selected for viewing
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
19 changes: 0 additions & 19 deletions
19
Aquality.WinAppDriver/src/Aquality.WinAppDriver/Aquality.WinAppDriver.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,108 @@ | ||
variables: | ||
buildConfiguration: 'Release' | ||
isRemote: true | ||
|
||
trigger: | ||
- master | ||
|
||
pool: | ||
vmImage: 'windows-latest' | ||
|
||
steps: | ||
- task: GitVersion@5 | ||
displayName: 'Run GitVersion' | ||
inputs: | ||
runtime: 'core' | ||
|
||
- task: SonarCloudPrepare@1 | ||
displayName: 'Prepare SonarCloud analysis' | ||
inputs: | ||
SonarCloud: 'SonarCloud' | ||
organization: 'aqualityautomation' | ||
projectKey: 'aquality-automation_aquality-winappdriver-dotnet' | ||
projectName: 'aquality-winappdriver-dotnet' | ||
projectVersion: '$(Build.BuildNumber)' | ||
extraProperties: | | ||
sonar.coverage.exclusions=**/** | ||
- task: DotNetCoreCLI@2 | ||
displayName: 'Build solution' | ||
inputs: | ||
command: 'build' | ||
projects: Aquality.WinAppDriver/Aquality.WinAppDriver.sln | ||
arguments: -c $(buildConfiguration) | ||
|
||
- task: SonarCloudAnalyze@1 | ||
displayName: 'Run SonarCloud code analysis' | ||
continueOnError: true | ||
|
||
- task: SonarCloudPublish@1 | ||
displayName: 'Publish SonarCloud quality gate results' | ||
continueOnError: true | ||
|
||
- task: ScreenResolutionUtility@1 | ||
displayName: 'Set up screen resolution 1920x1080' | ||
inputs: | ||
displaySettings: 'specific' | ||
width: '1920' | ||
height: '1080' | ||
|
||
- task: Windows Application Driver@0 | ||
displayName: 'Start WinAppDriver' | ||
inputs: | ||
OperationType: 'Start' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'Run tests' | ||
inputs: | ||
command: 'test' | ||
projects: '**/*Tests*/*.csproj' | ||
arguments: -c $(buildConfiguration) --no-build | ||
publishTestResults: true | ||
|
||
- task: Windows Application Driver@0 | ||
displayName: Stop WinAppDriver | ||
inputs: | ||
OperationType: 'Stop' | ||
|
||
- script: dotnet pack Aquality.WinAppDriver\src\Aquality.WinAppDriver\Aquality.WinAppDriver.csproj -c $(buildConfiguration) --no-build -p:Version=$(GitVersion.NuGetVersion) -o $(Build.ArtifactStagingDirectory) | ||
displayName: 'Pack to NuGet package' | ||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
variables: | ||
buildConfiguration: 'Release' | ||
|
||
stages: | ||
- stage: test | ||
|
||
jobs: | ||
- job: sonar | ||
displayName: Analyse code with SonarQube | ||
|
||
steps: | ||
- task: SonarCloudPrepare@1 | ||
displayName: 'Prepare SonarCloud analysis' | ||
inputs: | ||
SonarCloud: 'SonarCloud' | ||
organization: 'aqualityautomation' | ||
projectKey: 'aquality-automation_aquality-winappdriver-dotnet' | ||
projectName: 'aquality-winappdriver-dotnet' | ||
projectVersion: '$(Build.BuildNumber)' | ||
extraProperties: | | ||
sonar.coverage.exclusions=**/** | ||
- task: DotNetCoreCLI@2 | ||
displayName: 'Build solution' | ||
inputs: | ||
command: 'build' | ||
projects: Aquality.WinAppDriver/Aquality.WinAppDriver.sln | ||
arguments: -c $(buildConfiguration) | ||
|
||
- task: SonarCloudAnalyze@1 | ||
displayName: 'Run SonarCloud code analysis' | ||
continueOnError: true | ||
|
||
- task: GitHubRelease@0 | ||
displayName: 'Create tag on GitHub' | ||
inputs: | ||
gitHubConnection: 'GitHub' | ||
repositoryName: 'aquality-automation/aquality-winappdriver-dotnet' | ||
action: 'create' | ||
tag: 'v$(GitVersion.NuGetVersion)' | ||
tagSource: 'manual' | ||
isPreRelease: contains(variables['GitVersion.NuGetVersion'], '-') | ||
- task: SonarCloudPublish@1 | ||
displayName: 'Publish SonarCloud quality gate results' | ||
|
||
- job: tests | ||
displayName: Run tests | ||
|
||
variables: | ||
isRemote: true | ||
|
||
steps: | ||
- task: ScreenResolutionUtility@1 | ||
displayName: 'Set up screen resolution 1920x1080' | ||
inputs: | ||
displaySettings: 'specific' | ||
width: '1920' | ||
height: '1080' | ||
|
||
- task: Windows Application Driver@0 | ||
displayName: 'Start WinAppDriver' | ||
inputs: | ||
OperationType: 'Start' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'Run tests' | ||
inputs: | ||
command: 'test' | ||
projects: '**/*Tests*/*.csproj' | ||
arguments: -c $(buildConfiguration) | ||
publishTestResults: true | ||
|
||
- task: Windows Application Driver@0 | ||
displayName: Stop WinAppDriver | ||
inputs: | ||
OperationType: 'Stop' | ||
|
||
- stage: deploy | ||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
targetPath: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: '_aquality-automation.aquality-winappdriver-dotnet' | ||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
jobs: | ||
- job: release | ||
displayName: 'Create tag on GitHub and publish NuGet package' | ||
|
||
steps: | ||
- task: GitVersion@5 | ||
displayName: 'Run GitVersion' | ||
inputs: | ||
runtime: 'core' | ||
|
||
- script: dotnet pack Aquality.WinAppDriver\src\Aquality.WinAppDriver\Aquality.WinAppDriver.csproj -c $(buildConfiguration) -p:Version=$(GitVersion.NuGetVersion) -o $(Build.ArtifactStagingDirectory) | ||
displayName: 'Pack to NuGet package' | ||
|
||
- task: GitHubRelease@0 | ||
displayName: 'Create tag on GitHub' | ||
inputs: | ||
gitHubConnection: 'GitHub' | ||
repositoryName: 'aquality-automation/aquality-winappdriver-dotnet' | ||
action: 'create' | ||
tag: 'v$(GitVersion.NuGetVersion)' | ||
title: 'v$(GitVersion.NuGetVersion)' | ||
tagSource: 'manual' | ||
isPreRelease: contains(variables['GitVersion.NuGetVersion'], '-') | ||
|
||
- task: NuGetCommand@2 | ||
displayName: 'Push NuGet package' | ||
inputs: | ||
command: 'push' | ||
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/Aquality.WinAppDriver*.nupkg;!$(Build.ArtifactStagingDirectory)/**/Aquality.WinAppDriver*.symbols.nupkg' | ||
nuGetFeedType: 'external' | ||
publishFeedCredentials: 'NuGet' |