Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/0.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Aug 22, 2020
2 parents 154f6e2 + a30379e commit dd66bd8
Show file tree
Hide file tree
Showing 32 changed files with 1,366 additions and 21 deletions.
4 changes: 4 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ install:
build_script:
- ps: .\build.ps1 -Target AppVeyor

# Tests
test_script:
- ps: .\demos\build.ps1

# Tests
test: off

Expand Down
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These owners will be the default owners for everything in the repo and
# will be requested for review when someone opens a pull request.
* @pascalberger
1 change: 1 addition & 0 deletions GitReleaseManager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ issue-labels-include:
- Bug
- Improvement
- Documentation
- Dependencies
issue-labels-exclude:
- Build
issue-labels-alias:
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ and for general information about the Cake build automation system see the [Cake
|GitHub Release|-|[![GitHub release](https://img.shields.io/github/release/cake-contrib/Cake.Issues.Reporting.Sarif.svg)](https://github.com/cake-contrib/Cake.Issues.Reporting.Sarif/releases/latest)|
|NuGet|[![NuGet](https://img.shields.io/nuget/v/Cake.Issues.Reporting.Sarif.svg)](https://www.nuget.org/packages/Cake.Issues.Reporting.Sarif)|[![NuGet](https://img.shields.io/nuget/vpre/Cake.Issues.Reporting.Sarif.svg)](https://www.nuget.org/packages/Cake.Issues.Reporting.Sarif)|

## Build Status
## Build & Test Status

| | Develop | Master |
|:--:|:--:|:--:|
|AppVeyor Windows|[![Build status](https://ci.appveyor.com/api/projects/status/a5t3j7p51r581jk0/branch/develop?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-issues-reporting-sarif/branch/develop)|[![Build status](https://ci.appveyor.com/api/projects/status/a5t3j7p51r581jk0/branch/master?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-issues-reporting-sarif/branch/master)|
|Azure DevOps Windows|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=develop&jobName=Windows)](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=master&jobName=Windows)](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=master)|
|Azure DevOps Windows|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=develop&jobName=Build)](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=master&jobName=Build)](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=master)|
|Integration Tests Windows (.NET Framework)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=develop&jobName=Integration%20Tests%20Windows%20(.NET%20Framework))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=master&jobName=Integration%20Tests%20Windows%20(.NET%20Framework))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=master)|
|Integration Tests Windows (.NET Core tool)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=develop&jobName=Integration%20Tests%20Windows%20(.NET%20Core%20tool))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=master&jobName=Integration%20Tests%20Windows%20(.NET%20Core%20tool))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=master)|
|Integration Tests macOS 10.14 (Mono)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=develop&jobName=Integration%20Tests%20macOS%2010.14%20(Mono))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=master&jobName=Integration%20Tests%20macOS%2010.14%20(Mono))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=master)|
|Integration Tests macOS 10.15 (.NET Core tool)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=develop&jobName=Integration%20Tests%20macOS%2010.15%20(.NET%20Core%20tool))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=master&jobName=Integration%20Tests%20macOS%2010.15%20(.NET%20Core%20tool))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=master)|
|Integration Tests Ubuntu 16.04 (Mono)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=develop&jobName=Integration%20Tests%20Ubuntu%2016.04%20(Mono))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=master&jobName=Integration%20Tests%20Ubuntu%2016.04%20(Mono))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=master)|
|Integration Ubuntu 16.04 (.NET Core tool)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=develop&jobName=Integration%20Tests%20Ubuntu%2016.04%20(.NET%20Core%20tool))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_apis/build/status/cake-contrib.Cake.Issues.Reporting.Sarif?branchName=master&jobName=Integration%20Tests%20Ubuntu%2016.04%20(.NET%20Core%20tool))](https://dev.azure.com/cake-contrib/Cake.Issues.Reporting.Sarif/_build/latest?definitionId=32&branchName=master)|

## Code Coverage

Expand Down
223 changes: 217 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,220 @@ pr:
- hotfix/*

jobs:
- job: Windows
pool:
vmImage: 'windows-2019'
steps:
- powershell: ./build.ps1
displayName: 'Cake Build'
# Build
- job: Build
pool:
vmImage: 'windows-2019'
steps:
- powershell: ./build.ps1
displayName: 'Build'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
artifact: NuGet Package
displayName: 'Publish NuGet package as build artifact'
# Integration Tests Windows (.NET Framework)
- job: Test_Windows_DotNetFramework
displayName: 'Integration Tests Windows (.NET Framework)'
dependsOn: Build
pool:
vmImage: 'windows-2019'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install NodeJs 14.x'
- powershell: choco install markdownlint-cli --no-progress
displayName: 'Install required tools'
- download: current
artifact: NuGet Package
displayName: 'Download build artifact'
- task: CopyFiles@2
inputs:
sourceFolder: $(Pipeline.Workspace)/NuGet Package
targetFolder: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
displayName: 'Copy build artifact for test run'
- powershell: ./build.ps1 -verbosity diagnostic
workingDirectory: ./tests/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/output
artifact: Integration Tests Windows (.NET Framework)
displayName: 'Publish generated reports as build artifact'
# Integration Tests Windows (.NET Core tool)
- job: Test_Windows_DotNetCoreTool
displayName: Integration Tests Windows (.NET Core tool)
dependsOn: Build
pool:
vmImage: 'windows-2019'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install NodeJs 14.x'
- powershell: choco install markdownlint-cli --no-progress
displayName: 'Install required tools'
- download: current
artifact: NuGet Package
displayName: 'Download build artifact'
- task: CopyFiles@2
inputs:
sourceFolder: $(Pipeline.Workspace)/NuGet Package
targetFolder: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
displayName: 'Copy build artifact for test run'
- powershell: dotnet tool restore
workingDirectory: ./tests/
displayName: 'Restore .NET Core tool'
- powershell: dotnet cake
workingDirectory: ./tests/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/output
artifact: Integration Tests Windows (.NET Core tool)
displayName: 'Publish generated reports as build artifact'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/tests/output'
contents: '**/*.sarif'
targetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: 'Copy SARIF report'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: CodeAnalysisLogs
# Integration Tests macOS 10.14 (Mono)
- job: Test_macOS_Mono
displayName: 'Integration Tests macOS 10.14 (Mono)'
dependsOn: Build
pool:
vmImage: 'macOS-10.14'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install NodeJs 14.x'
- bash: |
npm install -g markdownlint-cli
displayName: 'Install required tools'
# To manually select a Xamarin SDK version on the Hosted macOS agent, enable this script with the SDK version you want to target
# https://go.microsoft.com/fwlink/?linkid=871629
- bash: |
sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1
displayName: 'Select Mono 5.18.1'
- download: current
artifact: NuGet Package
displayName: 'Download build artifact'
- task: CopyFiles@2
inputs:
sourceFolder: $(Pipeline.Workspace)/NuGet Package
targetFolder: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
displayName: 'Copy build artifact for test run'
- bash: |
./build.sh --verbosity diagnostic
workingDirectory: ./tests/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/output
artifact: Integration Tests macOS 10.14 (Mono)
displayName: 'Publish generated reports as build artifact'
# Integration Tests macOS 10.15 (.NET Core tool)
- job: Test_macOS_DotNetCoreTool
displayName: Integration Tests macOS 10.15 (.NET Core tool)
dependsOn: Build
pool:
vmImage: 'macOS-10.15'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install NodeJs 14.x'
- bash: |
npm install -g markdownlint-cli
displayName: 'Install required tools'
- download: current
artifact: NuGet Package
displayName: 'Download build artifact'
- task: CopyFiles@2
inputs:
sourceFolder: $(Pipeline.Workspace)/NuGet Package
targetFolder: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
displayName: 'Copy build artifact for test run'
- bash: |
dotnet tool restore
workingDirectory: ./tests/
displayName: 'Restore .NET Core tool'
- bash: |
dotnet cake
workingDirectory: ./tests/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/output
artifact: Integration Tests macOS 10.15 (.NET Core tool)
displayName: 'Publish generated reports as build artifact'
# Integration Tests Ubuntu 16.04 (Mono)
- job: Test_ubuntu_Mono
displayName: 'Integration Tests Ubuntu 16.04 (Mono)'
dependsOn: Build
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install NodeJs 14.x'
- bash: |
npm install -g markdownlint-cli
displayName: 'Install required tools'
- download: current
artifact: NuGet Package
displayName: 'Download build artifact'
- task: CopyFiles@2
inputs:
sourceFolder: $(Pipeline.Workspace)/NuGet Package
targetFolder: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
displayName: 'Copy build artifact for test run'
- bash: |
./build.sh --verbosity diagnostic
workingDirectory: ./tests/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/output
artifact: Integration Tests Ubuntu 16.04 (Mono)
displayName: 'Publish generated reports as build artifact'
# Integration Tests Ubuntu 16.04 (.NET Core tool)
- job: Test_ubuntu_DotNetCoreTool
displayName: Integration Tests Ubuntu 16.04 (.NET Core tool)
dependsOn: Build
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install NodeJs 14.x'
- bash: |
npm install -g markdownlint-cli
displayName: 'Install required tools'
- download: current
artifact: NuGet Package
displayName: 'Download build artifact'
- task: CopyFiles@2
inputs:
sourceFolder: $(Pipeline.Workspace)/NuGet Package
targetFolder: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
displayName: 'Copy build artifact for test run'
- bash: |
dotnet tool restore
workingDirectory: ./tests/
displayName: 'Restore .NET Core tool'
- bash: |
dotnet cake
workingDirectory: ./tests/
displayName: 'Run integration tests'
- publish: $(Build.SourcesDirectory)/tests/output
artifact: Integration Tests Ubuntu 16.04 (.NET Core tool)
displayName: 'Publish generated reports as build artifact'
# SARIF file deployment
# - job: Deploy_Sarif_Files
# displayName: Sarif File deployment
# dependsOn: [ Test_Windows_DotNetFramework, Test_Windows_DotNetCoreTool, Test_macOS_Mono, Test_macOS_DotNetCoreTool, Test_ubuntu_Mono, Test_ubuntu_DotNetCoreTool ]
# pool:
# vmImage: 'ubuntu-16.04'
# steps:
# - task: PublishBuildArtifacts@1
# inputs:
# pathToPublish: '$(Build.ArtifactStagingDirectory)'
# artifactName: drop
2 changes: 1 addition & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Task("Create-IssueReport").Does(() =>
);
MSBuild(repoRootFolder.CombineWithFilePath("MySolution.sln"), settings);

// Create HTML report using Diagnostic template.
// Create SARIF report.
CreateIssueReport(
new List<IIssueProvider>
{
Expand Down
2 changes: 1 addition & 1 deletion nuspec/nuget/Cake.Issues.Reporting.Sarif.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ See the Project Site for an overview of the whole ecosystem of addins for workin
<repository type="git" url="https://github.com/cake-contrib/Cake.Issues.Reporting.Sarif.git"/>
<copyright>Copyright © Pascal Berger</copyright>
<tags>Cake Script Cake-Issues Cake-ReportFormat Issues Reporting Sarif</tags>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues.Reporting.Sarif/releases/tag/0.8.0</releaseNotes>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues.Reporting.Sarif/releases/tag/0.9.0</releaseNotes>
</metadata>
<files>
<file src="..\..\..\..\nuspec\nuget\icon.png" target="" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Cake.Issues">
<Version>0.8.0</Version>
<Version>0.9.0</Version>
</PackageReference>
<PackageReference Include="Cake.Issues.Testing">
<Version>0.8.0</Version>
<Version>0.9.0</Version>
</PackageReference>
<PackageReference Include="Cake.Testing">
<Version>0.33.0</Version>
Expand All @@ -39,11 +39,12 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.0" />
<PackageReference Include="xunit">
<Version>2.4.1</Version>
</PackageReference>
<PackageReference Include="xunit.runner.visualstudio">
<Version>2.4.1</Version>
<Version>2.4.3</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
Loading

0 comments on commit dd66bd8

Please sign in to comment.