From 91f9c258fcfc02796a75bfff45fe0446d4f6d8fa Mon Sep 17 00:00:00 2001 From: Nick Cipollina Date: Sat, 18 Apr 2026 21:39:36 -0400 Subject: [PATCH 1/2] ci(github): migrate to v8.0 workflows and add .NET 11 support Replace build.yaml with publish-preview/publish-release pinned to devops-templates@v8.0. Add pr-title-check and release-drafter callers. Update pr-build.yaml to v8.0. Add net11.0 TFM to all projects. Add global.json with .NET 11 SDK. Bump AWSSDK.DynamoDBv2, AwesomeAssertions, Microsoft.NET.Test.Sdk, and Microsoft.SourceLink.GitHub. Fix README badges. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/build.yaml | 23 ------------------ .github/workflows/pr-build.yaml | 4 ++-- .github/workflows/pr-title-check.yaml | 13 ++++++++++ .github/workflows/publish-preview.yaml | 24 +++++++++++++++++++ .github/workflows/publish-release.yaml | 20 ++++++++++++++++ .github/workflows/release-drafter.yaml | 20 ++++++++++++++++ Directory.Packages.props | 14 +++++++---- DynamoDb.DistributedLock.slnx | 5 +++- README.md | 4 ++-- global.json | 9 +++++++ ...amoDb.DistributedLock.Observability.csproj | 2 +- .../DynamoDb.DistributedLock.csproj | 2 +- .../DynamoDb.DistributedLock.Tests.csproj | 2 +- 13 files changed, 107 insertions(+), 35 deletions(-) delete mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/pr-title-check.yaml create mode 100644 .github/workflows/publish-preview.yaml create mode 100644 .github/workflows/publish-release.yaml create mode 100644 .github/workflows/release-drafter.yaml create mode 100644 global.json diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index d6feff2..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: Build -on: - workflow_dispatch: - push: - branches: - - main - - beta - - release/* - tags: - - v* -permissions: write-all -jobs: - build: - uses: LayeredCraft/devops-templates/.github/workflows/package-build.yaml@v6.2 - with: - dotnet-version: | - 8.0.x - 9.0.x - 10.0.x - hasTests: true - useMtpRunner: true - testDirectory: "test" - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index 7eaa703..15b1f1b 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@v6.2 + uses: LayeredCraft/devops-templates/.github/workflows/pr-build.yaml@v8.0 with: solution: DynamoDb.DistributedLock.slnx hasTests: true @@ -15,9 +15,9 @@ jobs: 8.0.x 9.0.x 10.0.x + 11.0.x runCdk: false useMtpRunner: true - testDirectory: "test" enableCodeCoverage: true coverageThreshold: 80 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..9494707 --- /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: DynamoDb.DistributedLock.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..d6d110a --- /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: DynamoDb.DistributedLock.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/Directory.Packages.props b/Directory.Packages.props index 7b063e5..05100a5 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,11 +3,11 @@ true - + - +