diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index f830df1..2a9a16a 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -53,32 +53,45 @@ jobs: with: useConfigFile: true - - name: Setup BC DevTools - id: setup-bc-devtools + - name: Setup BC DevTools (netstandard2.1) uses: ./.github/actions/setup-bc-devtools with: - version-number: '10.0.687650' + version-number: '12.0.875970' + target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools/netstandard2.1' + + - name: Setup BC DevTools (net8.0) + uses: ./.github/actions/setup-bc-devtools + with: + version-number: '16.0.1463980' + target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools/net8.0' - name: Restore run: dotnet restore src/RoslynTestKit.sln - - name: Build (versioned) + - name: Pack run: > - dotnet build src/RoslynTestKit.sln --no-restore --configuration Release + dotnet pack src/RoslynTestKit/RoslynTestKit.csproj + --configuration Release + --no-restore /p:ContinuousIntegrationBuild=true - /p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} + /p:PublishRepositoryUrl=true + /p:RepositoryType=git + /p:RepositoryUrl=${{ github.server_url }}/${{ github.repository }} + /p:RepositoryBranch=${{ github.ref }} + /p:RepositoryCommit=${{ steps.gitversion.outputs.sha }} + /p:EmbedUntrackedSources=true + /p:IncludeSymbols=true + /p:SymbolPackageFormat=snupkg + /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} /p:AssemblyVersion=${{ steps.gitversion.outputs.assemblySemVer }} /p:FileVersion=${{ steps.gitversion.outputs.assemblySemFileVer }} - - - name: Pack - run: > - dotnet pack src/RoslynTestKit/RoslynTestKit.csproj --no-build --configuration Release - /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} + /p:InformationalVersion=${{ steps.gitversion.outputs.informationalVersion }} --output ./packages - name: Validate package manifest + if: false run: | - dotnet tool install --global dotnet-validate --version 0.0.1-preview.304 + dotnet tool install --global dotnet-validate --version 0.0.1-preview.537 dotnet-validate package local ./packages/*.nupkg - name: Upload package diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index cb7a400..3c51263 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -78,36 +78,45 @@ jobs: useConfigFile: true overrideConfig: ${{ steps.gv.outputs.override }} - - name: Setup BC DevTools - id: setup-bc-devtools + - name: Setup BC DevTools (netstandard2.1) uses: ./.github/actions/setup-bc-devtools with: - version-number: '10.0.687650' + version-number: '12.0.875970' + target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools/netstandard2.1' + + - name: Setup BC DevTools (net8.0) + uses: ./.github/actions/setup-bc-devtools + with: + version-number: '16.0.1463980' + target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools/net8.0' - name: Restore run: dotnet restore src/RoslynTestKit.sln - - name: Build + - name: Pack run: > - dotnet build src/RoslynTestKit.sln --no-restore --configuration Release + dotnet pack src/RoslynTestKit/RoslynTestKit.csproj + --configuration Release + --no-restore /p:ContinuousIntegrationBuild=true - /p:RepositoryBranch=${{ github.ref_name }} + /p:PublishRepositoryUrl=true + /p:RepositoryType=git + /p:RepositoryUrl=${{ github.server_url }}/${{ github.repository }} + /p:RepositoryBranch=${{ github.ref }} /p:RepositoryCommit=${{ steps.gitversion.outputs.sha }} - /p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} + /p:EmbedUntrackedSources=true + /p:IncludeSymbols=true + /p:SymbolPackageFormat=snupkg + /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} /p:AssemblyVersion=${{ steps.gitversion.outputs.assemblySemVer }} /p:FileVersion=${{ steps.gitversion.outputs.assemblySemFileVer }} /p:InformationalVersion=${{ steps.gitversion.outputs.informationalVersion }} - - - name: Pack - run: > - dotnet pack src/RoslynTestKit/RoslynTestKit.csproj --no-build --configuration Release - /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} - /p:RepositoryCommit=${{ steps.gitversion.outputs.sha }} --output ./packages - name: Validate package manifest + if: false run: | - dotnet tool install --global dotnet-validate --version 0.0.1-preview.304 + dotnet tool install --global dotnet-validate --version 0.0.1-preview.537 dotnet-validate package local ./packages/*.nupkg - name: Create GitHub Release @@ -138,8 +147,7 @@ jobs: if [ -z "$NUGET_API_KEY" ]; then echo "NUGET_API_KEY not configured"; exit 1 fi - dotnet nuget push ./packages/*.nupkg \ + dotnet nuget push ./packages/*.nupkg ./packages/*.snupkg \ --api-key "$NUGET_API_KEY" \ --source https://api.nuget.org/v3/index.json \ --skip-duplicate - diff --git a/src/RoslynTestKit/RoslynTestKit.csproj b/src/RoslynTestKit/RoslynTestKit.csproj index 6ebc241..7eb3790 100644 --- a/src/RoslynTestKit/RoslynTestKit.csproj +++ b/src/RoslynTestKit/RoslynTestKit.csproj @@ -1,43 +1,53 @@  netstandard2.1;net8.0 - true - true - true - true - snupkg - Dustin Campbell, Ivan Yochev, Cezary Piątek, Christoph Stuber, Ansgar Barthel, Arthur van de Vondervoort RoslynTestKit A lightweight framework for creating unit tests for Roslyn diagnostic analyzers, code fixes and refactorings. + Dustin Campbell, Ivan Yochev, Cezary Piątek, Christoph Stuber, Ansgar Barthel, Arthur van de Vondervoort Copyright 2015-2025 by Dustin Campbell, Ivan Yochev, Cezary Piątek, Christoph Stuber, Ansgar Barthel, Arthur van de Vondervoort + true https://github.com/ALCops/RoslynTestKit/blob/master/License.txt https://github.com/ALCops/RoslynTestKit - https://github.com/ALCops/RoslynTestKit - Roslyn CodeAnalysis test testing tdd analyzer fixes refactor refactoring AL Business Central - en - en-US - + Roslyn CodeAnalysis test testing tdd analyzer fixes refactor refactoring AL BusinessCentral ALCops.RoslynTestKit RoslynTestKit - true enable - - - + + + + + + False - ..\..\Microsoft.Dynamics.BusinessCentral.Development.Tools\Microsoft.Dynamics.Nav.CodeAnalysis.dll + ..\..\Microsoft.Dynamics.BusinessCentral.Development.Tools\netstandard2.1\Microsoft.Dynamics.Nav.CodeAnalysis.dll False False - ..\..\Microsoft.Dynamics.BusinessCentral.Development.Tools\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.dll + ..\..\Microsoft.Dynamics.BusinessCentral.Development.Tools\netstandard2.1\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.dll False + + + + + + + False + ..\..\Microsoft.Dynamics.BusinessCentral.Development.Tools\net8.0\Microsoft.Dynamics.Nav.CodeAnalysis.dll + False + + + False + ..\..\Microsoft.Dynamics.BusinessCentral.Development.Tools\net8.0\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.dll + False + + \ No newline at end of file