Skip to content
This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Draft
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
6 changes: 6 additions & 0 deletions .github/workflows/nightly-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
dryrun:
type: boolean
default: false
examples-branch:
description: 'device-detection-dotnet-examples branch to test against (empty = main)'
type: string
default: ''
schedule:
- cron: '0 3 * * *'

Expand Down Expand Up @@ -52,6 +56,7 @@ jobs:
org-name: ${{ github.event.repository.owner.login }}
dryrun: ${{ inputs.dryrun || false }}
cache-assets: true
examples-branch: ${{ inputs.examples-branch || '' }}
secrets:
token: ${{ secrets.ACCESS_TOKEN }}
DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }}
Expand All @@ -73,6 +78,7 @@ jobs:
org-name: ${{ github.event.repository.owner.login }}
dryrun: ${{ inputs.dryrun || false }}
cache-assets: true
examples-branch: ${{ inputs.examples-branch || '' }}
build-platform: windows-latest
secrets:
token: ${{ secrets.ACCESS_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
dryrun:
type: boolean
default: false
examples-branch:
description: 'device-detection-dotnet-examples branch to test against (empty = main)'
type: string
default: ''

jobs:
Publish:
Expand All @@ -16,6 +20,7 @@ jobs:
org-name: ${{ github.event.repository.owner.login }}
dryrun: ${{ inputs.dryrun || false }}
cache-assets: true
examples-branch: ${{ inputs.examples-branch || '' }}
build-platform: windows-latest
secrets:
token: ${{ secrets.ACCESS_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
dryrun:
type: boolean
default: false
examples-branch:
description: 'device-detection-dotnet-examples branch to test against (empty = main)'
type: string
default: ''

jobs:
PullRequests:
Expand All @@ -16,6 +20,7 @@ jobs:
org-name: ${{ github.event.repository.owner.login }}
dryrun: ${{ inputs.dryrun || false }}
cache-assets: true
examples-branch: ${{ inputs.examples-branch || '' }}
secrets:
token: ${{ secrets.ACCESS_TOKEN }}
DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }}
Expand Down
9 changes: 6 additions & 3 deletions ci/run-performance-tests-console.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ param(
[string]$OrgName,
[string]$Name = "Release_x64",
[string]$Configuration = "Release",
[string]$Arch = "x64"
[string]$Arch = "x64",
[string]$ExamplesBranch = "main"
)

$RepoPath = [IO.Path]::Combine($pwd, $RepoName)
Expand Down Expand Up @@ -38,8 +39,10 @@ finally {

try {
if ($(Test-Path -Path $ExamplesRepoName) -eq $False) {
Write-Output "Cloning '$ExamplesRepoName'"
./steps/clone-repo.ps1 -RepoName $ExamplesRepoName -OrgName $OrgName
# Same branch as run-integration-tests.ps1, which renames its own
# checkout to ex, so the clone here would otherwise always be main.
Write-Output "Cloning '$ExamplesRepoName' branch '$ExamplesBranch'"
./steps/clone-repo.ps1 -RepoName $ExamplesRepoName -OrgName $OrgName -Branch $ExamplesBranch
}

Write-Output "Moving TAC file"
Expand Down
5 changes: 3 additions & 2 deletions ci/run-performance-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ param(
[string]$OrgName,
[string]$Name = "Release_x64",
[string]$Configuration = "Release",
[string]$Arch = "x64"
[string]$Arch = "x64",
[string]$ExamplesBranch = "main"
)

& $RepoName/ci/run-performance-tests-console.ps1 -RepoName:$RepoName -OrgName:$OrgName -Name:$Name -Configuration:$Configuration -Arch:$Arch
& $RepoName/ci/run-performance-tests-console.ps1 -RepoName:$RepoName -OrgName:$OrgName -Name:$Name -Configuration:$Configuration -Arch:$Arch -ExamplesBranch:$ExamplesBranch
& $RepoName/ci/run-performance-tests-web.ps1 -Name:$Name -Configuration:$Configuration -Arch:$Arch
Loading