Skip to content

Commit

Permalink
Merge branch 'release/4.10.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Aug 20, 2024
2 parents 58b83b9 + 77de2b2 commit 9276b7a
Show file tree
Hide file tree
Showing 63 changed files with 564 additions and 509 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ install:
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.408 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.424 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.425 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 7.0.409 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 8.0.303 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 8.0.401 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
- ps: dotnet --info

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Quick build of required artifacts for integration tests

stages:
- stage: IntegrationTestsBuildStage
displayName: Build
dependsOn: []
jobs:
- job: CreateNuGetPackagesJob
displayName: Create NuGet Packages
pool:
vmImage: 'ubuntu-22.04'
steps:
- template: ../steps/install-required-dotnet-versions-for-building.yml
- bash: ./build.sh --target=Create-NuGet-Packages
displayName: 'Build'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
artifact: NuGet Package
displayName: 'Publish NuGet package as build artifact'
15 changes: 15 additions & 0 deletions .azuredevops/pipelines/templates/stages/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Runs full build pipeline

stages:
- stage: BuildStage
displayName: Full Build
dependsOn: []
jobs:
- job: BuildJob
displayName: Build
pool:
vmImage: 'windows-2022'
steps:
- template: ../steps/install-required-dotnet-versions-for-building.yml
- bash: ./build.sh
displayName: 'Build & Run Unit Tests'
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Runs integration tests for Cake.Issues.GitRepository on different platforms

stages:
- stage: IntegrationTestsGitRepositoryStage
displayName: Integration Tests Cake.Issues.GitRepository
dependsOn: IntegrationTestsBuildStage
jobs:
- job: TestGitRepositoryScriptingJob
displayName: Test Cake Scripting
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net6.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.GitRepository/script-runner
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration
artifact: Integration Tests Cake.Issues.GitRepository Cake Scripting $(System.JobName)
displayName: 'Publish generated reports as build artifact'
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Runs integration tests for Cake.Issues.Markdownlint on different platforms

stages:
- stage: IntegrationTestsMarkdownlintStage
displayName: Integration Tests Cake.Issues.Markdownlint
dependsOn: IntegrationTestsBuildStage
jobs:
- job: TestMarkdownlintJob
displayName: Test
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net6.yml
- template: ../steps/install-markdownlint.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.Markdownlint/script-runner
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/Cake.Issues.Markdownlint/script-runner/output/report.html
artifact: Integration Tests Cake.Issues.Markdownlint $(System.JobName)
displayName: 'Publish generated reports as build artifact'
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Runs integration tests for Cake.Issues.MsBuild on different platforms

stages:
- stage: IntegrationTestsMsBuildStage
displayName: Integration Tests Cake.Issues.MsBuild
dependsOn: IntegrationTestsBuildStage
jobs:
- job: TestMsBuildJob
displayName: Test
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net6.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.MsBuild/script-runner
displayName: 'Run integration tests'
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Runs integration tests for Cake.Issues.Reporting.Console on different platforms

stages:
- stage: IntegrationTestsReportingConsoleStage
displayName: Integration Tests Cake.Issues.Reporting.Console
dependsOn: IntegrationTestsBuildStage
jobs:
- job: TestReportingConsoleScriptingJob
displayName: Test Cake Scripting
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net6.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.Reporting.Console/script-runner
displayName: 'Run integration tests'
- job: TestReportingConsoleFrostingNet6Job
displayName: Test Cake Frosting .NET 6
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net6.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.Reporting.Console/frosting/net6.0
displayName: 'Run integration tests'
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Runs integration tests for Cake.Issues.Reporting.Generic on different platforms

stages:
- stage: IntegrationTestsReportingGenericStage
displayName: Integration Tests Cake.Issues.Reporting.Generic
dependsOn: IntegrationTestsBuildStage
jobs:
- job: TestReportingGenericScriptingJob
displayName: Test Cake Scripting
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net6.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.Reporting.Generic/script-runner
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/docs/input/docs/report-formats/generic/templates
artifact: Integration Tests Cake.Issues.Reporting.Generic Cake Scripting $(System.JobName)
displayName: 'Publish generated reports as build artifact'
- job: TestReportingGenericFrostingNet6Job
displayName: Test Cake Frosting .NET 6
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net6.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.Reporting.Generic/frosting
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/docs/input/docs/report-formats/generic/templates
artifact: Integration Tests Cake.Issues.Reporting.Generic Cake Frosting .NET 6 $(System.JobName)
displayName: 'Publish generated reports as build artifact'
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Runs integration tests for Cake.Issues.Reporting.Sarif on different platforms

stages:
- stage: IntegrationTestsReportingSarifStage
displayName: Integration Tests Cake.Issues.Reporting.Sarif
dependsOn: IntegrationTestsBuildStage
jobs:
- job: TestReportingSarifScriptingJob
displayName: Test Cake Scripting
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net6.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.Reporting.Sarif/script-runner
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/Cake.Issues.Reporting.Sarif/script-runner/output
artifact: Integration Tests Cake.Issues.Reporting.Sarif Cake Scripting $(System.JobName)
displayName: 'Publish generated reports as build artifact'
- job: TestReportingSarifFrostingNet6Job
displayName: Test Cake Frosting .NET 6
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net6.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.Reporting.Sarif/frosting/net6
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/Cake.Issues.Reporting.Sarif/frosting/output
artifact: Integration Tests Cake.Issues.Reporting.Sarif Cake Frosting .NET 6 $(System.JobName)
displayName: 'Publish generated reports as build artifact'
- job: TestReportingSarifFrostingNet7Job
displayName: Test Cake Frosting .NET 7
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net7.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.Reporting.Sarif/frosting/net7
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/Cake.Issues.Reporting.Sarif/frosting/output
artifact: Integration Tests Cake.Issues.Reporting.Sarif Cake Frosting .NET 7 $(System.JobName)
displayName: 'Publish generated reports as build artifact'
- job: TestReportingSarifFrostingNet8Job
displayName: Test Cake Frosting .NET 8
strategy:
matrix:
Windows_Server_2019:
imageName: 'windows-2019'
Windows_Server_2022:
imageName: 'windows-2022'
macOS_12:
imageName: 'macOS-12'
macOS_14:
imageName: 'macOS-14'
Ubuntu_20_04:
imageName: 'ubuntu-20.04'
Ubuntu_22_04:
imageName: 'ubuntu-22.04'
pool:
vmImage: $(imageName)
steps:
- template: ../steps/install-net8.yml
- template: ../steps/provide-nuget-packages.yml
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/Cake.Issues.Reporting.Sarif/frosting/net8
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/Cake.Issues.Reporting.Sarif/frosting/output
artifact: Integration Tests Cake.Issues.Reporting.Sarif Cake Frosting .NET 8 $(System.JobName)
displayName: 'Publish generated reports as build artifact'
Loading

0 comments on commit 9276b7a

Please sign in to comment.