Skip to content

Commit

Permalink
fix(tests): preinstall GitHubActionsTestLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Feb 26, 2022
1 parent 15bd511 commit 9e78480
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
run: dotnet pack -c Release src/${{ env.MUDBLAZOR_PROJECT }}
- name: Create ef package
run: dotnet pack -c Release src/${{ env.EF_PROJECT }}
- name: Add Github Actions logger
run: dotnet add tests/${{ env.TESTS_PROJECT_MAIN }}/${{ env.TESTS_PROJECT_MAIN }}.csproj package GitHubActionsTestLogger
- name: Run main tests
run: dotnet test --logger GitHubActions tests/${{ env.TESTS_PROJECT_MAIN }}/${{ env.TESTS_PROJECT_MAIN }}.csproj
- name: Run html parser tests
Expand Down
3 changes: 3 additions & 0 deletions Sitko.Blockly.sln
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ ProjectSection(SolutionItems) = preProject
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{BE2C5E4A-BFBD-4645-AE0A-8B57A9EC1CB2}"
ProjectSection(SolutionItems) = preProject
tests\Directory.Build.props = tests\Directory.Build.props
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sitko.Blockly.Tests", "tests\Sitko.Blockly.Tests\Sitko.Blockly.Tests.csproj", "{6E318256-F811-46B9-9EED-EDB1D1CEACDC}"
EndProject
Expand Down
10 changes: 10 additions & 0 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="GitHubActionsTestLogger" Version="1.3.0" />
</ItemGroup>
</Project>

0 comments on commit 9e78480

Please sign in to comment.