Skip to content

Commit

Permalink
Update Blazor example's workflow and its JustMock dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceMcCarthy committed Jul 16, 2024
1 parent c1e7115 commit be32d74
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main_build-blazor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# For build guidance only, this workflow does not publish to Dockerhub.
# See workflows/main_build-aspnetcore.yml for an example that builds and publishes an image to Docker Hub
# This example has two container build & publish examples
# The ".NET CONTAINER SDK BUILD" job publishes the container to registry.hub.docker.com
# The "DOCKER FILE BUILD" job publishes the container to ghcr.io (GitHub container registry)
name: Build Blazor Application

on:
Expand Down Expand Up @@ -86,16 +87,19 @@ jobs:

- name: Restore NuGet Packages
run: |
# In this special case, we're using the nested nuget.config file (instead of src/nuget.config)
# In this special case, we're using the project's nested nuget.config file (instead of the global src/nuget.config)
dotnet restore ${{env.BLAZOR_PROJ_PATH}} --configfile ${{env.NUGET_CONFIG_PATH}} -r ${{env.RID}}
dotnet restore ${{env.TEST_PROJ_PATH}} --configfile ${{env.NUGET_CONFIG_PATH}} -r ${{env.RID}}
env:
TELERIK_USERNAME: ${{secrets.MyTelerikAccountUsername}}
TELERIK_PASSWORD: ${{secrets.MyTelerikAccountPassword}}

- name: Build Test Project
- name: Build Unit Test Project
run: dotnet build ${{env.TEST_PROJ_PATH}} -c ${{env.CONFIGURATION}} -r ${{env.RID}} --no-restore

- name: Run Unit Tests
run: dotnet test ${{env.TEST_PROJ_PATH}} -r ${{env.RID}}

- name: Fetch secrets from AKeyless
id: akeyless
uses: LanceMcCarthy/akeyless-action@v3
Expand Down
8 changes: 4 additions & 4 deletions src/Blazor/MyBlazorApp.Tests/MyBlazorApp.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="JustMock.Commercial" Version="2023.3.1011.155" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="JustMock.Commercial" Version="2024.2.514.325" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.4.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.4.3" />
<PackageReference Include="System.Security.Permissions" Version="8.0.0" />
</ItemGroup>

Expand Down
6 changes: 3 additions & 3 deletions src/Blazor/MyBlazorApp/MyBlazorApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.5" />
<PackageReference Include="Telerik.UI.for.Blazor" Version="6.0.0" />
<PackageReference Include="Telerik.Drawing.Skia" Version="18.1.24.514" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7" />
<PackageReference Include="Telerik.UI.for.Blazor" Version="6.0.2" />
<PackageReference Include="Telerik.Drawing.Skia" Version="18.1.24.709" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit be32d74

Please sign in to comment.