Skip to content
Merged
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
72 changes: 72 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feat'
- 'feature'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bug'
- title: '🧹 Maintenance'
labels:
- 'chore'
- 'refactor'
- 'deps'
- title: '📖 Documentation'
labels:
- 'docs'
- 'documentation'
- title: '🔧 CI/CD'
labels:
- 'ci'
- 'build'
autolabeler:
- label: 'feat'
title:
- '/^feat(\(.+\))?:/i'
- label: 'fix'
title:
- '/^fix(\(.+\))?:/i'
- label: 'docs'
title:
- '/^docs(\(.+\))?:/i'
- label: 'chore'
title:
- '/^chore(\(.+\))?:/i'
- label: 'refactor'
title:
- '/^refactor(\(.+\))?:/i'
- label: 'ci'
title:
- '/^ci(\(.+\))?:/i'
- label: 'deps'
title:
- '/^(chore|build)(\(deps\))?:/i'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'
version-resolver:
major:
labels:
- 'breaking'
- 'major'
minor:
labels:
- 'feat'
- 'feature'
patch:
labels:
- 'fix'
- 'bug'
- 'chore'
- 'refactor'
- 'deps'
- 'docs'
- 'ci'
- 'build'
default: patch
template: |
## Changes

$CHANGES
27 changes: 0 additions & 27 deletions .github/workflows/build.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
permissions: write-all
jobs:
build:
uses: LayeredCraft/devops-templates/.github/workflows/pr-build.yaml@v7.3
uses: LayeredCraft/devops-templates/.github/workflows/pr-build.yaml@v8.0
with:
solution: LayeredCraft.DecoWeaver.slnx
hasTests: true
Expand All @@ -16,5 +16,6 @@ jobs:
8.0.x
9.0.x
10.0.x
11.0.x
runCdk: false
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/pr-title-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: PR Title Check

on:
pull_request:
types: [opened, edited, synchronize, reopened]

permissions:
pull-requests: read
statuses: write

jobs:
validate:
uses: LayeredCraft/devops-templates/.github/workflows/pr-title-check.yml@v8.0
24 changes: 24 additions & 0 deletions .github/workflows/publish-preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Preview

on:
workflow_dispatch:
push:
branches: [main]
paths-ignore:
- 'docs/**'
- 'README.md'

permissions: write-all

jobs:
publish:
uses: LayeredCraft/devops-templates/.github/workflows/publish-preview.yml@v8.0
with:
solution: LayeredCraft.DecoWeaver.slnx
dotnetVersion: |
8.0.x
9.0.x
10.0.x
11.0.x
hasTests: true
secrets: inherit
20 changes: 20 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Release

on:
release:
types: [published]
Comment on lines +4 to +5
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore tag trigger for release publishing

This workflow now runs only on release.published, so a plain Git tag push no longer starts a publish job. The existing release flow still documents Create Git tag then Push to GitHub as the trigger (see docs/contributing.md), and the removed build.yaml used push.tags: v*; with this change, that established path produces no NuGet publish unless maintainers also create a GitHub Release manually.

Useful? React with 👍 / 👎.


permissions: write-all

jobs:
publish:
uses: LayeredCraft/devops-templates/.github/workflows/publish-release.yml@v8.0
with:
solution: LayeredCraft.DecoWeaver.slnx
dotnetVersion: |
8.0.x
9.0.x
10.0.x
11.0.x
hasTests: true
secrets: inherit
20 changes: 20 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Drafter

on:
push:
branches:
- main
pull_request:
types: [opened, edited, synchronize, reopened, ready_for_review]
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
draft:
uses: LayeredCraft/devops-templates/.github/workflows/release-drafter.yml@v8.0
with:
event_name: ${{ github.event_name }}
pr_draft: ${{ github.event.pull_request.draft == true }}
5 changes: 4 additions & 1 deletion LayeredCraft.DecoWeaver.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@
<File Path="docs\usage\opt-out.md" />
</Folder>
<Folder Name="/git/">
<File Path=".github\workflows\pr-title-check.yaml" />
<File Path=".github\workflows\publish-preview.yaml" />
<File Path=".github\workflows\publish-release.yaml" />
<File Path=".github\workflows\release-drafter.yaml" />
<File Path=".gitignore" />
<File Path=".gitattributes" />
<File Path=".github\dependabot.yml" />
<File Path=".github\workflows\build.yaml" />
<File Path=".github\workflows\pr-build.yaml" />
<File Path=".github\workflows\docs.yml" />
</Folder>
Expand Down
9 changes: 9 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"sdk": {
"rollForward": "latestMinor",
"version": "11.0.100-preview.3.26207.106"
},
"test": {
"runner": "Microsoft.Testing.Platform"
}
}
6 changes: 3 additions & 3 deletions samples/DecoWeaver.Sample/DecoWeaver.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.5" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.5" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="10.0.5" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.6" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.6" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="10.0.6" />
<PackageReference Remove="Microsoft.SourceLink.GitHub" />
</ItemGroup>
<!-- Only write generated files to disk in Debug builds (nice for inspection) -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Polyfill" Version="9.23.0">
<PackageReference Include="Polyfill" Version="10.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="10.0.201">
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="10.0.202">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" PrivateAssets="all" />
<PackageReference Include="Polyfill" Version="9.23.0">
<PackageReference Include="Polyfill" Version="10.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Scriban" Version="7.0.6" IncludeAssets="build" PrivateAssets="all" />
<PackageReference Include="Scriban" Version="7.1.0" IncludeAssets="build" PrivateAssets="all" />
<ProjectReference Include="..\LayeredCraft.DecoWeaver.Attributes\LayeredCraft.DecoWeaver.Attributes.csproj" PrivateAssets="All" />
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="10.0.201">
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="10.0.202">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ public static Compilation RecompileWithGeneratedTrees(Compilation original, CSha
/// </summary>
private static IEnumerable<MetadataReference> GetBclReferences()
{
#if NET8_0
#if NET11_0_OR_GREATER
return Basic.Reference.Assemblies.Net110.References.All;
#elif NET8_0
return Basic.Reference.Assemblies.Net80.References.All;
#elif NET9_0
return Basic.Reference.Assemblies.Net90.References.All;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<LangVersion>default</LangVersion>
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
<TargetFrameworks>net8.0;net10.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net9.0;net11.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand All @@ -30,13 +30,13 @@
<PackageReference Include="AutoFixture.Xunit3" Version="4.19.0" />
<PackageReference Include="AwesomeAssertions" Version="9.4.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.4.0" />
<PackageReference Include="NSubstitute" Version="5.3.0" />
<PackageReference Include="Verify.SourceGenerators" Version="2.5.0" />
<PackageReference Include="Verify.XunitV3" Version="31.13.5" />
<PackageReference Include="Verify.XunitV3" Version="31.16.1" />
<PackageReference Include="xunit.v3" Version="3.2.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="10.0.201">
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="10.0.202">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand All @@ -47,18 +47,23 @@
<ProjectReference Include="..\..\src\LayeredCraft.DecoWeaver.Generators\LayeredCraft.DecoWeaver.Generators.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net8.0'">
<PackageReference Include="Basic.Reference.Assemblies.Net80" Version="1.8.4" />
<PackageReference Include="Basic.Reference.Assemblies.Net80" Version="1.8.5" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net9.0'">
<PackageReference Include="Basic.Reference.Assemblies.Net90" Version="1.8.4" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.14" />
<PackageReference Include="Basic.Reference.Assemblies.Net90" Version="1.8.5" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.15" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net10.0'">
<PackageReference Include="Basic.Reference.Assemblies.Net100" Version="1.8.4" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.5" />
<PackageReference Include="Basic.Reference.Assemblies.Net100" Version="1.8.5" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.6" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net11.0'">
<PackageReference Include="Basic.Reference.Assemblies.Net110" Version="1.8.5" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="11.0.0-preview.3.26207.106" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading