Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moves source for Cake.Issues.PullRequests.GitHubActions into this repository #513

Merged
merged 146 commits into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
c879285
(GH-2) Build and solution setup
pascalberger Sep 2, 2018
a9aafa8
Update XUnit to 2.4.1
pascalberger Dec 15, 2018
e4e07d4
Merge pull request #7 from pascalberger/feature/xunit-2-4-1
pascalberger Dec 15, 2018
d985598
Bump Shouldly from 3.0.0 to 3.0.2 in /src
dependabot-support Dec 15, 2018
09f22aa
Merge pull request #9 from cake-contrib/dependabot/nuget/src/Shouldly…
pascalberger Dec 15, 2018
6423f35
Bump Microsoft.NET.Test.Sdk from 15.8.0 to 15.9.0 in /src
dependabot-support Dec 15, 2018
bd22983
Merge pull request #10 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Dec 15, 2018
a9f3523
Bump StyleCop.Analyzers from 1.1.0-beta008 to 1.1.0-beta009 in /src
dependabot-support Dec 15, 2018
22f67ce
Merge pull request #12 from cake-contrib/dependabot/nuget/src/StyleCo…
pascalberger Dec 15, 2018
a822b6d
Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.6.1 to 2.6.2 in /src
dependabot-support Dec 15, 2018
d6a8ac2
Merge pull request #13 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Dec 16, 2018
40478b6
Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.6.2 to 2.6.3 in /src
dependabot-support Jan 11, 2019
b7520f9
Merge pull request #19 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Jan 11, 2019
d5c062c
Bump Microsoft.NET.Test.Sdk from 15.9.0 to 16.0.0 in /src
dependabot-support Mar 1, 2019
c2d7a63
Merge pull request #20 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Mar 3, 2019
4f617b9
Bump Microsoft.NET.Test.Sdk from 16.0.0 to 16.0.1 in /src
dependabot-support Mar 4, 2019
dc55838
Merge pull request #21 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Mar 4, 2019
988d2d2
Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.6.3 to 2.9.0 in /src
dependabot-support Mar 27, 2019
f480c4b
Merge pull request #22 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Mar 27, 2019
743e675
Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.0 to 2.9.1 in /src
dependabot-support Mar 29, 2019
392094b
Merge pull request #23 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Mar 29, 2019
240ad24
Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.1 to 2.9.2 in /src
dependabot-support Apr 18, 2019
4ba38ee
Merge pull request #24 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Apr 18, 2019
391e009
Bump xunit.runner.visualstudio from 2.4.1 to 2.4.3 in /src
dependabot-preview[bot] Aug 3, 2020
c772221
Merge pull request #56 from cake-contrib/dependabot/nuget/src/xunit.r…
pascalberger Sep 24, 2020
3010c65
Bump StyleCop.Analyzers from 1.1.0-beta009 to 1.1.118 in /src
dependabot-preview[bot] Sep 24, 2020
4ede438
Merge pull request #25 from cake-contrib/dependabot/nuget/src/StyleCo…
pascalberger Sep 24, 2020
5333eba
Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.2 to 3.3.0 in /src
dependabot-preview[bot] Sep 24, 2020
6b17db1
Merge pull request #58 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Sep 24, 2020
59d9575
Bump Cake.Issues from 0.6.0 to 0.9.0 in /src
dependabot-preview[bot] Sep 24, 2020
0a94d81
Bump Cake.Issues.Testing from 0.6.0 to 0.9.0 in /src
dependabot-preview[bot] Sep 19, 2020
a115403
Bump Cake.Issues.PullRequests from 0.6.0 to 0.9.0 in /src
dependabot-preview[bot] Sep 24, 2020
a011715
Build against Cake 0.33.3
pascalberger Sep 24, 2020
c6edc2a
Merge pull request #63 from cake-contrib/dependabot/nuget/src/Cake.Is…
pascalberger Sep 24, 2020
f85ae50
Rename to Cake.Issues.PullRequests.GitHubActions
pascalberger Sep 24, 2020
c337839
Merge pull request #65 from pascalberger/feature/rename
pascalberger Sep 25, 2020
7a5f0ae
Bump Microsoft.NET.Test.Sdk from 16.0.1 to 16.7.1 in /src
dependabot-preview[bot] Sep 25, 2020
b99bf71
Target .NET Core 2.1 in test project
pascalberger Sep 25, 2020
8d92eee
Merge pull request #59 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Sep 25, 2020
032d8b9
Use embedded icon in NuGet package
pascalberger Sep 25, 2020
5b0469a
Merge pull request #71 from pascalberger/feature/embedded-icon
pascalberger Sep 25, 2020
e5386c3
Use license expression for NuGet package
pascalberger Sep 25, 2020
9c1228e
Merge pull request #78 from pascalberger/feature/license-expression
pascalberger Sep 25, 2020
0fff3d9
Implement reporting of issues to GitHub Actions
pascalberger Sep 25, 2020
3a6f2cc
Add integration tests
pascalberger Sep 26, 2020
edd9ac9
Add documentation
pascalberger Sep 26, 2020
8c2de4c
Merge pull request #79 from pascalberger/feature/implement
pascalberger Sep 26, 2020
c6bbf38
Commit for versioning
pascalberger Sep 26, 2020
ae87fd8
Improve documentation
pascalberger Sep 26, 2020
847811a
Fixe whitespace in NuGet package description
pascalberger Sep 26, 2020
530645d
Merge tag '0.9.0' into develop
pascalberger Sep 26, 2020
89222d2
Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 3.3.0 to 3.3.1 in /src
dependabot-preview[bot] Oct 29, 2020
3f8bab2
Merge pull request #95 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Oct 29, 2020
6801dfd
Bump Microsoft.NET.Test.Sdk from 16.7.1 to 16.8.0 in /src
dependabot-preview[bot] Nov 9, 2020
2a68a78
Merge pull request #97 from cake-contrib/dependabot/nuget/src/Microso…
pascalberger Nov 9, 2020
a0a2c39
Bump Shouldly from 3.0.2 to 4.0.0 in /src
dependabot-preview[bot] Nov 9, 2020
2a30901
Merge pull request #98 from cake-contrib/dependabot/nuget/src/Shouldl…
pascalberger Nov 9, 2020
1631047
Bump Shouldly from 4.0.0 to 4.0.1 in /src
dependabot-preview[bot] Nov 15, 2020
b155982
Merge pull request #99 from cake-contrib/dependabot/nuget/src/Shouldl…
pascalberger Nov 15, 2020
0d25841
Bump Microsoft.NET.Test.Sdk from 16.8.0 to 16.8.3 in /src
dependabot-preview[bot] Dec 2, 2020
59073a7
Merge pull request #100 from cake-contrib/dependabot/nuget/src/Micros…
pascalberger Dec 3, 2020
b0804a5
Bump Shouldly from 4.0.1 to 4.0.2 in /src
dependabot-preview[bot] Dec 17, 2020
d27de6e
Merge pull request #102 from cake-contrib/dependabot/nuget/src/Should…
pascalberger Dec 17, 2020
b2b5e2d
Bump Shouldly from 4.0.2 to 4.0.3 in /src
dependabot-preview[bot] Dec 17, 2020
0a09023
Merge pull request #103 from cake-contrib/dependabot/nuget/src/Should…
pascalberger Dec 17, 2020
d3fa6c1
Bump Cake.Core from 0.33.0 to 1.0.0 in /src
dependabot-preview[bot] Feb 8, 2021
c84691a
Bump Cake.Testing from 0.33.0 to 1.0.0 in /src
dependabot-preview[bot] Feb 7, 2021
01615dc
Update tests to Cake 1.0
pascalberger Feb 21, 2021
53fd6fb
Merge pull request #107 from cake-contrib/dependabot/nuget/src/Cake.C…
pascalberger Feb 21, 2021
d7a3a08
Migrate from FxCop analyzers to NETAnalyzers
pascalberger Feb 21, 2021
f9571fc
Merge pull request #109 from pascalberger/feature/netanalyzer
pascalberger Feb 21, 2021
f14bb20
(GH-108) Build against Cake.Issues 1.0 Beta 1
pascalberger Feb 21, 2021
31baf4b
Merge pull request #111 from pascalberger/feature/gh-108
pascalberger Feb 21, 2021
a700410
Bump Microsoft.NET.Test.Sdk from 16.8.3 to 16.9.1 in /src
dependabot-preview[bot] Feb 23, 2021
3103613
Merge pull request #112 from cake-contrib/dependabot/nuget/src/Micros…
pascalberger Feb 27, 2021
83e5217
Update release notes link
pascalberger Feb 27, 2021
0c5d6f4
(GH-115) Update NuGet package tags
pascalberger Mar 13, 2021
c564569
Update NuGet package icon
pascalberger Apr 30, 2021
a797614
Update to Cake.Issues 1.0
pascalberger Jul 28, 2021
f6673db
Merge branch 'release/1.0.0'
pascalberger Jul 28, 2021
de02f54
Merge tag '1.0.0' into develop
pascalberger Jul 28, 2021
b09139f
Bump Microsoft.NET.Test.Sdk from 16.9.1 to 16.10.0 in /src
dependabot-preview[bot] Jul 28, 2021
2bd4a9c
Merge pull request #118 from cake-contrib/dependabot/nuget/src/Micros…
pascalberger Jul 28, 2021
544e370
(GH-123) Multi-Target .NET Core 3.1, 5 & 6 instead of .NET Standard 2…
pascalberger Jul 26, 2022
e76489c
(GH-122) Build against Cake 2.0 (#130)
pascalberger Jul 26, 2022
554e55b
Bump Microsoft.NET.Test.Sdk from 16.10.0 to 17.2.0 in /src (#125)
dependabot[bot] Jul 26, 2022
d8b9ae3
Bump Microsoft.CodeAnalysis.NetAnalyzers from 5.0.3 to 6.0.0 in /src …
dependabot[bot] Jul 26, 2022
9158efa
Bump xunit.runner.visualstudio from 2.4.3 to 2.4.5 in /src (#127)
dependabot[bot] Jul 26, 2022
9484163
Update release notes link
pascalberger Jul 26, 2022
a88065c
Bump Microsoft.NET.Test.Sdk from 17.2.0 to 17.3.2 in /src (#139)
dependabot[bot] Oct 1, 2022
f2ee622
Bump Shouldly from 4.0.3 to 4.1.0 in /src (#137)
dependabot[bot] Oct 1, 2022
cff6c1b
Bump xunit from 2.4.1 to 2.4.2 in /src (#135)
dependabot[bot] Oct 1, 2022
2ba4379
Update to Cake.Issues 2.0
pascalberger Dec 8, 2022
5a5f146
Merge branch 'release/2.0.0'
pascalberger Dec 8, 2022
9606f52
Merge tag '2.0.0' into develop
pascalberger Dec 8, 2022
037d898
Bump Microsoft.NET.Test.Sdk from 17.3.2 to 17.4.0 in /src (#140)
dependabot[bot] Dec 8, 2022
4226f83
(GH-148) Update target frameworks (#154)
pascalberger Jun 12, 2023
504bef0
Bump Microsoft.NET.Test.Sdk from 17.4.0 to 17.6.2 in /src (#153)
dependabot[bot] Jun 12, 2023
41be748
Bump Microsoft.CodeAnalysis.NetAnalyzers from 6.0.0 to 7.0.1 in /src …
dependabot[bot] Jun 12, 2023
e5bb57c
Bump Shouldly from 4.1.0 to 4.2.1 in /src (#155)
dependabot[bot] Jun 13, 2023
ea02af1
Update to Cake 3.0 and Cake.Issues 3.0 (#156)
pascalberger Jun 13, 2023
11d7057
Update release notes link
pascalberger Jun 13, 2023
8290334
Bump Microsoft.CodeAnalysis.NetAnalyzers from 7.0.1 to 7.0.3 in /src …
dependabot[bot] Jun 20, 2023
cd3c70e
Bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.6.3 in /src (#162)
dependabot[bot] Jun 28, 2023
76feda7
Update dependency xunit to v2.5.0 (#168)
renovate[bot] Jul 7, 2023
5f89e65
Update dependency xunit.runner.visualstudio to v2.5.0 (#171)
renovate[bot] Jul 8, 2023
c243b9c
Update Cake.Issues to v3.0.0
renovate[bot] Jul 13, 2023
7aad9ab
Merge branch 'release/3.0.0' into develop
pascalberger Jul 17, 2023
a954c6b
Merge tag '3.0.0' into develop
pascalberger Jul 17, 2023
23ec598
Merge branch 'release/3.0.0'
pascalberger Jul 17, 2023
61d7047
Update dependency Microsoft.NET.Test.Sdk to v17.7.0 (#177)
renovate[bot] Aug 4, 2023
4949ffc
Update dependency Microsoft.NET.Test.Sdk to v17.7.1 (#178)
renovate[bot] Aug 16, 2023
f57f513
Update dependency Microsoft.CodeAnalysis.NetAnalyzers to v7.0.4 (#181)
renovate[bot] Aug 28, 2023
603a436
Update dependency Microsoft.NET.Test.Sdk to v17.7.2 (#182)
renovate[bot] Aug 29, 2023
7ad51ef
Update xunit-dotnet monorepo to v2.5.1 (#186)
renovate[bot] Sep 18, 2023
5381009
Update xunit-dotnet monorepo (#188)
renovate[bot] Oct 13, 2023
da65fda
Update dependency xunit to v2.5.3 (#189)
renovate[bot] Oct 16, 2023
b643d0e
Update dependency xunit to v2.6.0 (#191)
renovate[bot] Nov 1, 2023
9f48811
Update dependency xunit to v2.6.1 (#192)
renovate[bot] Nov 3, 2023
a9e3ab9
Update dependency Microsoft.NET.Test.Sdk to v17.8.0 (#193)
renovate[bot] Nov 8, 2023
ae53c74
Update dependency Microsoft.CodeAnalysis.NetAnalyzers to v8 (#194)
renovate[bot] Nov 17, 2023
9ccd3cb
Update xunit-dotnet monorepo (#196)
renovate[bot] Nov 19, 2023
a8ab2de
Update xunit-dotnet monorepo (#198)
renovate[bot] Dec 9, 2023
b897ff7
Update cake monorepo to v4 (major) (#195)
renovate[bot] Dec 16, 2023
66a8973
Multi-Target .NET 8 (#204)
pascalberger Dec 16, 2023
1518240
Update Cake.Issues 4.0.0-beta0001 (#207)
pascalberger Dec 16, 2023
34b91d0
Update release notes link
pascalberger Dec 16, 2023
a189470
Update xunit-dotnet monorepo (#210)
renovate[bot] Dec 23, 2023
f8392f3
Update to Cake.Issues 4.0.0
pascalberger Dec 23, 2023
ceb60ea
Merge branch 'release/4.0.0'
pascalberger Dec 23, 2023
ef6c198
Merge tag '4.0.0' into develop
pascalberger Dec 23, 2023
d4bc26a
Update dependency xunit to v2.6.5 (#212)
renovate[bot] Jan 5, 2024
c13f160
Update dependency xunit to v2.6.6 (#216)
renovate[bot] Jan 18, 2024
3e6af47
Update dependency Microsoft.NET.Test.Sdk to v17.9.0 (#220)
renovate[bot] Feb 6, 2024
982bc98
Update xunit-dotnet monorepo (#222)
renovate[bot] Mar 2, 2024
0c7a52f
Merge remote-tracking branch 'githubactions/develop' into feature/git…
pascalberger Apr 13, 2024
d8b1748
(GH-391) Remove not required files for Cake.Issues.PullRequests.GitHu…
pascalberger Apr 13, 2024
7578b3a
(GH-391) Update rule sets for Cake.Issues.PullRequests.GitHubActions
pascalberger Apr 13, 2024
fee69dc
(GH-391) Update project references to Cake.Issues for Cake.Issues.Pul…
pascalberger Apr 13, 2024
c1fa75e
(GH-391) Add Cake.Issues.PullRequests.GitHubActions to solution
pascalberger Apr 13, 2024
ad30eed
(GH-391) Update NuGet packages in Cake.Issues.PullRequests.GitHubActi…
pascalberger Apr 13, 2024
d6cb403
(GH-391) Add Cake.Issues.PullRequests.GitHubActions to README
pascalberger Apr 13, 2024
7f3b91a
(GH-391) Update repository link in the Cake.Issues.PullRequests.GitHu…
pascalberger Apr 13, 2024
88ced6f
Update authors & copyright for Cake.Issues.PullRequests.GitHubActions…
pascalberger Apr 13, 2024
96850c7
(GH-391) Move documentation for Cake.Issues.PullRequests.GitHubAction…
pascalberger Apr 13, 2024
b1f7af7
(GH-391) Run integration tests for Cake.Issues.PullRequests.GitHubAct…
pascalberger Apr 13, 2024
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
68 changes: 68 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build and tests

# Workflow Trigger
on:
# Trigger the workflow on a pull request to any branch
pull_request:
# Triggers the workflow in the event there is a push to master
push:
branches:
- master

jobs:
# Build
Build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Get the sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- name: Install .NET
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
# .NET 5 required for GitVersion
dotnet-version: |
5.x
6.x
7.x
8.x
- name: Build
run: ./build.sh
shell: bash
- name: Publish NuGet package as build artifact
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet/
# Integration Tests Cake.Issues.PullRequests.GitHubActions Cake Scripting
IntegrationTestsPullRequestsGitHubActionsCakeScripting:
name: Integration Tests Cake.Issues.PullRequests.GitHubActions Cake Scripting
needs: Build
strategy:
fail-fast: false
matrix:
os: [
windows-2019, windows-2022,
# Disabled until https://github.com/cake-contrib/Cake.Issues/issues/514 is fixed
# ubuntu-20.04, ubuntu-22.04,
macos-11, macos-14]
dotnet: [6.x, 7.x, 8.x]
runs-on: ${{ matrix.os }}
steps:
- name: Get the sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Download build artifact
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet
- name: Install .NET
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Run integration tests
run: ./build.sh --verbosity=diagnostic
working-directory: ./tests/Cake.Issues.PullRequests.GitHubActions/script-runner/
shell: bash
3 changes: 2 additions & 1 deletion CiStatus.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Build & Test Status

## Build / Unit Tests
## Build / Tests

| CI Server | Runner | Operating System | Develop | Master |
|:--:|:--:|:--:|:--:|:--:|
|AppVeyor|N/A|Windows|[![Build status](https://ci.appveyor.com/api/projects/status/sde2oe3lu4kpmw0r/branch/develop?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-issues/branch/develop)|[![Build status](https://ci.appveyor.com/api/projects/status/sde2oe3lu4kpmw0r/branch/master?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-issues/branch/master)|
|Azure Pipelines|N/A|Windows|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues/_apis/build/status%2Fcake-contrib.Cake.Issues?branchName=develop&jobName=Build%20%26%20Unit%20Tests&configuration=Build%20%26%20Unit%20Tests%20Windows)](https://dev.azure.com/cake-contrib/Cake.Issues/_build/latest?definitionId=2&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues/_apis/build/status%2Fcake-contrib.Cake.Issues?branchName=master&jobName=Build%20%26%20Unit%20Tests&configuration=Build%20%26%20Unit%20Tests%20Windows)](https://dev.azure.com/cake-contrib/Cake.Issues/_build/latest?definitionId=2&branchName=master)|
|Azure Pipelines|N/A|Ubuntu|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues/_apis/build/status%2Fcake-contrib.Cake.Issues?branchName=develop&jobName=Build%20%26%20Unit%20Tests&configuration=Build%20%26%20Unit%20Tests%20Ubuntu)](https://dev.azure.com/cake-contrib/Cake.Issues/_build/latest?definitionId=2&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues/_apis/build/status%2Fcake-contrib.Cake.Issues?branchName=master&jobName=Build%20%26%20Unit%20Tests&configuration=Build%20%26%20Unit%20Tests%20Ubuntu)](https://dev.azure.com/cake-contrib/Cake.Issues/_build/latest?definitionId=2&branchName=master)|
|Azure Pipelines|N/A|macOS|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues/_apis/build/status%2Fcake-contrib.Cake.Issues?branchName=develop&jobName=Build%20%26%20Unit%20Tests&configuration=Build%20%26%20Unit%20Tests%20macOS)](https://dev.azure.com/cake-contrib/Cake.Issues/_build/latest?definitionId=2&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Issues/_apis/build/status%2Fcake-contrib.Cake.Issues?branchName=master&jobName=Build%20%26%20Unit%20Tests&configuration=Build%20%26%20Unit%20Tests%20macOS)](https://dev.azure.com/cake-contrib/Cake.Issues/_build/latest?definitionId=2&branchName=master)|
|GitHub Actions|N/A|Ubuntu|[![Build and tests](https://github.com/cake-contrib/Cake.Issues/actions/workflows/build.yml/badge.svg?branch=develop)](https://github.com/cake-contrib/Cake.Issues/actions/workflows/build.yml)|[![Build and tests](https://github.com/cake-contrib/Cake.Issues/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/cake-contrib/Cake.Issues/actions/workflows/build.yml)|

## Integration Tests Cake.Issues.GitRepository

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ For questions and to discuss ideas & feature requests, use the [GitHub discussio
| [Cake.Issues.PullRequests](https://www.nuget.org/packages/Cake.Issues.PullRequests) | [Cake.Frosting.Issues.PullRequests](https://www.nuget.org/packages/Cake.Frosting.Issues.PullRequests) | Addin providing the aliases for writing issues to pull requests and build servers. |
| [Cake.Issues.PullRequests.AppVeyor](https://www.nuget.org/packages/Cake.Issues.PullRequests.AppVeyor) | [Cake.Issues.PullRequests.AppVeyor](https://www.nuget.org/packages/Cake.Issues.PullRequests.AppVeyor) | Integration with AppVeyor builds. |
| [Cake.Issues.PullRequests.AzureDevOps](https://www.nuget.org/packages/Cake.Issues.PullRequests.AzureDevOps) | [Cake.Frosting.Issues.PullRequests.AzureDevOps](https://www.nuget.org/packages/Cake.Frosting.Issues.PullRequests.AzureDevOps) | Integration with Azure DevOps pull requests. |
| [Cake.Issues.PullRequests.GitHubActions](https://www.nuget.org/packages/Cake.Issues.PullRequests.GitHubActions) | [Cake.Issues.PullRequests.AzureDevOps](https://www.nuget.org/packages/Cake.Issues.PullRequests.AzureDevOps) | Integration with GitHub Actions. |
| [Cake.Issues.Reporting](https://www.nuget.org/packages/Cake.Issues.Reporting) | [Cake.Frosting.Issues.Reporting](https://www.nuget.org/packages/Cake.Frosting.Issues.Reporting) | Addin providing the aliases for creating reports. |
| [Cake.Issues.Reporting.Console](https://www.nuget.org/packages/Cake.Issues.Reporting.Console) | [Cake.Frosting.Issues.Reporting.Console](https://www.nuget.org/packages/Cake.Frosting.Issues.Reporting.Console) | Support for reporting issues to the console. |
| [Cake.Issues.Reporting.Generic](https://www.nuget.org/packages/Cake.Issues.Reporting.Generic) | [Cake.Frosting.Issues.Reporting.Generic](https://www.nuget.org/packages/Cake.Frosting.Issues.Reporting.Generic) | Support for creating reports in any text based format (HTML, Markdown, ...). |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
Title: Examples
Description: Examples for using the Cake.Issues.PullRequests.GitHubActions addin.
---
<p>@Html.Raw(Model.String(DocsKeys.Description))</p>

@Html.Partial("_ChildPages")
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
Order: 10
Title: Create annotations in GitHub Actions
Description: Example how to write issues as annotations to a GitHub Actions build.
---
This example shows how to report issues as annotations to a GitHub Actions build.

To report issues as annotations to a GitHub Actions build you need to import the core addin,
the core pull request addin, the GitHub Actions support and one or more issue providers,
in this example for JetBrains InspectCode:

```csharp
#addin "Cake.Issues"
#addin "Cake.Issues.InspectCode"
#addin "Cake.Issues.PullRequests"
#addin "Cake.Issues.PullRequests.GitHubActions"
```

:::{.alert .alert-warning}
Please note that you always should pin addins to a specific version to make sure your builds are deterministic and
won't break due to updates to one of the addins.

See [pinning addin versions](https://cakebuild.net/docs/tutorials/pinning-cake-version#pinning-addin-version) for details.
:::

In the following task we'll first determine the remote repository URL and
source branch of the pull request and with this information call the [GitHubActionsBuilds] alias:

```csharp
Task("ReportIssuesToGitHubActions").Does(() =>
{
var repoRootFolder = MakeAbsolute(Directory("./"));

ReportIssuesToPullRequest(
InspectCodeIssuesFromFilePath(
@"C:\build\inspectcode.log"),
GitHubActionsBuilds(),
repoRootFolder);
});
```

The output will show up in the build log grouped by issue provider / run:

![Log output](../githubactions-log-output.png "Log output")

Additionally the issues show up as annotations:

![Annotations](../githubactions-annotations.png "Annotations")

Having issues available as annotations also means that they will be shown in pull requests on the related file / position:

![Pull request integration](../githubactions-pullrequest-integration.png "Pull request integration")

[GitHubActionsBuilds]: ../../../../api/Cake.Issues.PullRequests.GitHubActions/GitHubActionsBuildsAliases/
25 changes: 25 additions & 0 deletions docs/input/docs/pull-request-systems/github-actions/features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
Order: 20
Title: Features
Description: Features of the Cake.Issues.PullRequests.GitHubActions addin.
---
The [Cake.Issues.PullRequests.GitHubActions addin] creates annotations from issues when running on GitHub actions.

![Pull request integration](githubactions-pullrequest-integration.png "Pull request integration")

# Basic features

* Reports issues as annotations to GitHub Actions builds.
* Group issues in log output by provider and run information.

# Supported capabilities

The [Cake.Issues.PullRequests.GitHubActions addin] doesn't support any additional capabilities.

| | Capability | Remarks |
|--------------------------------------------------------------------|--------------------------------|--------------------------------|
| <span class="glyphicon glyphicon-remove" style="color:red"></span> | Checking commit ID | |
| <span class="glyphicon glyphicon-remove" style="color:red"></span> | Discussion threads | |
| <span class="glyphicon glyphicon-remove" style="color:red"></span> | Filtering by modified files | |

[Cake.Issues.PullRequests.GitHubActions addin]: https://www.nuget.org/packages/Cake.Issues.PullRequests.GitHubActions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
Title: GitHub Actions
Description: Support for GitHub Actions.
---
<p>
Support for GitHub Actions is implemented in the
<a href="https://www.nuget.org/packages/Cake.Issues.PullRequests.GitHubActions" target="_blank">Cake.Issues.PullRequests.GitHubActions addin</a>.
</p>

@Html.Partial("_ChildPages")
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
Order: 10
Title: Requirements
Description: Requirements for the Cake.Issues.PullRequests.GitHubActions addin.
---
The requirements for using the [Cake.Issues.PullRequests.GitHubActions addin] are listed in the [release notes] for any specific version.

[Cake.Issues.PullRequests.GitHubActions addin]: https://www.nuget.org/packages/Cake.Issues.PullRequests.GitHubActions
[release notes]: release-notes
39 changes: 39 additions & 0 deletions nuspec/nuget/Cake.Issues.PullRequests.GitHubActions.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>Cake.Issues.PullRequests.GitHubActions</id>
<title>Cake.Issues.PullRequests.GitHubActions</title>
<version>0.0.0</version>
<authors>Cake Issues contributors</authors>
<owners>pascalberger, cake-contrib</owners>
<summary>GitHub Actions support for the Cake.Issues addin for Cake Build Automation System</summary>
<description>
GitHub Actions support for the Cake.Issues addin for Cake allows you to report to GitHub Actions builds.

This addin provides the aliases for writing to GitHub Actions builds.
It also requires the core Cake.Issues and Cake.Issues.PullRequests addins and one or more issue providers.

See the Project Site for an overview of the whole ecosystem of addins for working with issues in Cake scripts.
</description>
<license type="expression">MIT</license>
<projectUrl>https://cakeissues.net</projectUrl>
<icon>icon.png</icon>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<repository type="git" url="https://github.com/cake-contrib/Cake.Issues"/>
<copyright>Copyright © Cake Issues contributors</copyright>
<tags>cake cake-addin cake-issues cake-pullrequestsystem issues pullrequest buildserver github github-actions</tags>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues/releases/tag/4.0.0</releaseNotes>
</metadata>
<files>
<file src="..\..\..\..\nuspec\nuget\icon.png" target="" />
<file src="net6.0\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\net6.0" />
<file src="net6.0\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\net6.0" />
<file src="net6.0\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\net6.0" />
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\net7.0" />
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\net7.0" />
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\net7.0" />
<file src="net8.0\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\net8.0" />
<file src="net8.0\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\net8.0" />
<file src="net8.0\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\net8.0" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<Description>Tests for the Cake.Issues.PullRequests.GitHubActions addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
<Product>Cake.Issues</Product>
</PropertyGroup>

<PropertyGroup>
<CodeAnalysisRuleSet>..\Cake.Issues.Tests.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Cake.Testing" Version="4.0.0" />
<PackageReference Include="Shouldly" Version="4.2.1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.7.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues\Cake.Issues.csproj" />
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.PullRequests.GitHubActions\Cake.Issues.PullRequests.GitHubActions.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace Cake.Issues.PullRequests.GitHubActions.Tests
{
using System;
using Cake.Issues.Testing;
using Cake.Testing;
using Shouldly;
using Xunit;

public sealed class GitHubActionsBuildSettingsTests
{
public sealed class TheCtor
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<Description>Addin for writing code analyzer or linter issues to GitHub Actions</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
<Product>Cake.Issues</Product>
</PropertyGroup>

<PropertyGroup>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<CodeAnalysisRuleSet>..\Cake.Issues.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Cake.Issues.PullRequests.GitHubActions.xml</DocumentationFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="4.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues\Cake.Issues.csproj" />
<ProjectReference Include="..\Cake.Issues.PullRequests\Cake.Issues.PullRequests.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace Cake.Issues.PullRequests.GitHubActions
{
/// <summary>
/// Settings for <see cref="GitHubActionsBuildsAliases"/>.
/// </summary>
public class GitHubActionsBuildSettings
{
/// <summary>
/// Gets or sets a value indicating whether issues should be grouped by issue provider and run information.
/// Enabled by default.
/// </summary>
public bool GroupIssues { get; set; } = true;
}
}
Loading
Loading