diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..f6b9832 --- /dev/null +++ b/.github/release-drafter.yml @@ -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 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index d10218d..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: Build -on: - workflow_dispatch: - push: - branches: - - main - - beta - - release/* - tags: - - v* - paths-ignore: - - 'docs/**' - - 'README.md' - - 'ROADMAP.md' - - 'mkdocs.yml' - - 'requirements.txt' -permissions: write-all -jobs: - build: - uses: LayeredCraft/devops-templates/.github/workflows/package-build.yaml@v7.3 - with: - hasTests: true - dotnet-version: | - 8.0.x - 9.0.x - 10.0.x - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index da68e44..7d9f22f 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -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 @@ -16,5 +16,6 @@ jobs: 8.0.x 9.0.x 10.0.x + 11.0.x runCdk: false secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pr-title-check.yaml b/.github/workflows/pr-title-check.yaml new file mode 100644 index 0000000..762c0c5 --- /dev/null +++ b/.github/workflows/pr-title-check.yaml @@ -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 diff --git a/.github/workflows/publish-preview.yaml b/.github/workflows/publish-preview.yaml new file mode 100644 index 0000000..766fbc7 --- /dev/null +++ b/.github/workflows/publish-preview.yaml @@ -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 diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml new file mode 100644 index 0000000..7c5c967 --- /dev/null +++ b/.github/workflows/publish-release.yaml @@ -0,0 +1,20 @@ +name: Publish Release + +on: + release: + types: [published] + +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 diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 0000000..8755081 --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -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 }} diff --git a/LayeredCraft.DecoWeaver.slnx b/LayeredCraft.DecoWeaver.slnx index 8ce23e5..f76a323 100644 --- a/LayeredCraft.DecoWeaver.slnx +++ b/LayeredCraft.DecoWeaver.slnx @@ -49,10 +49,13 @@ + + + + - diff --git a/global.json b/global.json new file mode 100644 index 0000000..625d93d --- /dev/null +++ b/global.json @@ -0,0 +1,9 @@ +{ + "sdk": { + "rollForward": "latestMinor", + "version": "11.0.100-preview.3.26207.106" + }, + "test": { + "runner": "Microsoft.Testing.Platform" + } +} diff --git a/samples/DecoWeaver.Sample/DecoWeaver.Sample.csproj b/samples/DecoWeaver.Sample/DecoWeaver.Sample.csproj index 9cb2178..303aa54 100644 --- a/samples/DecoWeaver.Sample/DecoWeaver.Sample.csproj +++ b/samples/DecoWeaver.Sample/DecoWeaver.Sample.csproj @@ -17,9 +17,9 @@ - - - + + + diff --git a/src/LayeredCraft.DecoWeaver.Attributes/LayeredCraft.DecoWeaver.Attributes.csproj b/src/LayeredCraft.DecoWeaver.Attributes/LayeredCraft.DecoWeaver.Attributes.csproj index 5d22d6d..510fd1b 100644 --- a/src/LayeredCraft.DecoWeaver.Attributes/LayeredCraft.DecoWeaver.Attributes.csproj +++ b/src/LayeredCraft.DecoWeaver.Attributes/LayeredCraft.DecoWeaver.Attributes.csproj @@ -11,11 +11,11 @@ true - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/LayeredCraft.DecoWeaver.Generators/LayeredCraft.DecoWeaver.Generators.csproj b/src/LayeredCraft.DecoWeaver.Generators/LayeredCraft.DecoWeaver.Generators.csproj index 94abf27..df0836c 100644 --- a/src/LayeredCraft.DecoWeaver.Generators/LayeredCraft.DecoWeaver.Generators.csproj +++ b/src/LayeredCraft.DecoWeaver.Generators/LayeredCraft.DecoWeaver.Generators.csproj @@ -21,13 +21,13 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/LayeredCraft.DecoWeaver.Generator.Tests/GeneratorTestHelpers.cs b/test/LayeredCraft.DecoWeaver.Generator.Tests/GeneratorTestHelpers.cs index 8e04a2b..8ba9c35 100644 --- a/test/LayeredCraft.DecoWeaver.Generator.Tests/GeneratorTestHelpers.cs +++ b/test/LayeredCraft.DecoWeaver.Generator.Tests/GeneratorTestHelpers.cs @@ -122,7 +122,9 @@ public static Compilation RecompileWithGeneratedTrees(Compilation original, CSha /// private static IEnumerable 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; diff --git a/test/LayeredCraft.DecoWeaver.Generator.Tests/LayeredCraft.DecoWeaver.Generator.Tests.csproj b/test/LayeredCraft.DecoWeaver.Generator.Tests/LayeredCraft.DecoWeaver.Generator.Tests.csproj index e5afd0a..1067a4c 100644 --- a/test/LayeredCraft.DecoWeaver.Generator.Tests/LayeredCraft.DecoWeaver.Generator.Tests.csproj +++ b/test/LayeredCraft.DecoWeaver.Generator.Tests/LayeredCraft.DecoWeaver.Generator.Tests.csproj @@ -9,7 +9,7 @@ default true true - net8.0;net10.0;net9.0 + net8.0;net10.0;net9.0;net11.0 @@ -30,13 +30,13 @@ - + - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -47,18 +47,23 @@ - + - - + + - - + + + + + + +