Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion build/build-and-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft. All rights reserved.
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
# This template contains jobs to build and run unit tests

Expand All @@ -12,6 +12,8 @@ jobs:
displayName: Build and run unit tests - ${{ parameters.configuration }}
condition: succeeded()
templateContext:
settings:
networkIsolationPolicy: Permissive,CFSClean
outputs:
- output: buildArtifacts
artifactName: drop
Expand Down Expand Up @@ -40,8 +42,13 @@ jobs:
inputs:
script: set

- template: prepare-nuget.yml

- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)/src/nuget.config'

- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
Expand All @@ -50,6 +57,8 @@ jobs:
projects: |
**\*.csproj
!**\CustomActions.Package.csproj
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)/src/nuget.config'

- task: VSBuild@1
displayName: 'Build Solution **\*.sln'
Expand Down
10 changes: 9 additions & 1 deletion build/check-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft. All rights reserved.
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
# This template checks for assemblies that may need harvesting in ClearlyDefined

Expand All @@ -13,14 +13,22 @@ jobs:
name: $(a11yInsightsPool) # Name of your hosted pool
image: windows-2022-secure # Name of the image in your pool. If not specified, first image of the pool is used
os: windows # OS of the image. Allowed values: windows, linux, macOS
templateContext:
settings:
networkIsolationPolicy: Permissive,CFSClean
steps:
- task: NuGetToolInstaller@1
displayName: 'Use NuGet 5.x'
inputs:
versionSpec: '5.x'

- template: prepare-nuget.yml

- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)/src/nuget.config'

- task: PowerShell@2
displayName: 'Check ClearlyDefined'
Expand Down
1 change: 1 addition & 0 deletions build/prbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ extends:
parameters:
settings:
skipBuildTagsForGitHubPullRequests: true
networkIsolationPolicy: Permissive,CFSClean
# Update the pool with your team's 1ES hosted pool.
pool:
name: $(a11yInsightsPool) # Name of your hosted pool
Expand Down
13 changes: 13 additions & 0 deletions build/prepare-nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
# Prepares NuGet for a solution restore by authenticating to the Azure Artifacts
# feed declared in nuget.config.

parameters:
- name: nugetConfigPath
type: string
default: '$(Build.SourcesDirectory)/src/nuget.config'

steps:
- task: NuGetAuthenticate@1
displayName: 'Authenticate to NuGet feeds'
25 changes: 24 additions & 1 deletion build/signedbuild.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft. All rights reserved.
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
name: $(date:yyyy-MM-dd)$(rev:.rr)
trigger: none
Expand Down Expand Up @@ -66,8 +66,13 @@ extends:
inputs:
script: set

- template: prepare-nuget.yml

- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)/src/nuget.config'

- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
Expand All @@ -76,6 +81,8 @@ extends:
projects: |
**\*.csproj
!**\CustomActions.Package.csproj
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)/src/nuget.config'

- task: VSBuild@1
displayName: 'Build Solution **\*.sln'
Expand Down Expand Up @@ -126,8 +133,15 @@ extends:
inputs:
script: set

- template: prepare-nuget.yml

- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
command: 'restore'
restoreSolution: '$(Build.SourcesDirectory)\src\AccessibilityInsights.sln'
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)/src/nuget.config'

- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
Expand All @@ -136,6 +150,8 @@ extends:
projects: |
**\*.csproj
!**\CustomActions.Package.csproj
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)/src/nuget.config'

- task: VSBuild@1
displayName: 'Build Solution **\*.sln'
Expand Down Expand Up @@ -257,8 +273,13 @@ extends:
inputs:
script: set

- template: prepare-nuget.yml

- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)/src/nuget.config'

- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
Expand All @@ -267,6 +288,8 @@ extends:
projects: |
**\*.csproj
!**\CustomActions.Package.csproj
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)/src/nuget.config'

- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
Expand Down
13 changes: 12 additions & 1 deletion build/ui-test-job.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft. All rights reserved.
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
# This template contains jobs to run UI tests using WinAppDriver.

Expand All @@ -13,21 +13,32 @@ jobs:
name: $(a11yInsightsPool) # Name of your hosted pool
image: windows-2022-secure # Name of the image in your pool. If not specified, first image of the pool is used
os: windows # OS of the image. Allowed values: windows, linux, macOS
templateContext:
settings:
networkIsolationPolicy: Permissive,CFSClean
steps:
- task: NuGetToolInstaller@1
displayName: 'Use NuGet 5.x'
inputs:
versionSpec: '5.x'

- template: prepare-nuget.yml

- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
command: restore
restoreSolution: '**/*.sln'
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)/src/nuget.config'

- task: VSBuild@1
displayName: 'Build Solution **\*.sln'
inputs:
vsVersion: 17.0
platform: '$(BuildPlatform)'
configuration: ${{ parameters.configuration }}
msbuildArgs: '/restore /p:RestoreConfigFile=$(Build.SourcesDirectory)/src/nuget.config'

- task: WinAppDriver.winappdriver-pipelines-task.winappdriver-pipelines-task.Windows Application Driver@0
displayName: 'Start - WinAppDriver'
Expand Down
7 changes: 7 additions & 0 deletions src/nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="a11y-insights-public" value="https://pkgs.dev.azure.com/accessibility-insights/_packaging/a11y-insights-public/nuget/v3/index.json" />
</packageSources>
</configuration>