From 2e65dd1f5f510fca62d764ec35cc6feaa7dd79fd Mon Sep 17 00:00:00 2001 From: Farshad DASHTI Date: Wed, 9 Oct 2024 16:16:46 +0100 Subject: [PATCH] Updated the template --- .github/workflows/nuget-package-template.yml | 12 ++++++------ src/DfE.CoreLibs.Testing/readme.md | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nuget-package-template.yml b/.github/workflows/nuget-package-template.yml index b0e38f9..13d47d0 100644 --- a/.github/workflows/nuget-package-template.yml +++ b/.github/workflows/nuget-package-template.yml @@ -97,12 +97,12 @@ jobs: echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV fi - # - name: Build, pack and publish - # working-directory: ${{ inputs.project_path }} - # run: | - # dotnet build -c Release - # dotnet pack -c Release -p:PackageVersion=${{ env.NEW_VERSION }} --output . - # dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/DFE-Digital/index.json + - name: Build, pack and publish + working-directory: ${{ inputs.project_path }} + run: | + dotnet build -c Release + dotnet pack -c Release -p:PackageVersion=${{ env.NEW_VERSION }} --output . + dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/DFE-Digital/index.json - name: Get Release Note id: extract_description diff --git a/src/DfE.CoreLibs.Testing/readme.md b/src/DfE.CoreLibs.Testing/readme.md index ddf80ec..5b18f23 100644 --- a/src/DfE.CoreLibs.Testing/readme.md +++ b/src/DfE.CoreLibs.Testing/readme.md @@ -12,6 +12,7 @@ dotnet add package DfE.CoreLibs.Testing ## Usage + ### Usage of Customization Attributes In your tests, you can use `CustomAutoData` to easily inject customizations like `AutoMapperCustomization`, this Customization scans your assembly for profiles and registers them automatically.