Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,9 @@ jobs:
- name: 📦 Restore Dependencies
run: dotnet restore

- name: 🤖 Setup Godot
uses: chickensoft-games/setup-godot@v2
with:
# Version must include major, minor, and patch, and be >= 4.0.0
# Pre-release label is optional.
#
# In this case, we are using the version from global.json.
#
# This allows checks on renovatebot PR's to succeed whenever
# renovatebot updates the Godot SDK version.
version: global.json

- name: 🧑‍🔬 Generate .NET Bindings
working-directory: Chickensoft.SaveFileBuilder.Tests
run: godot --headless --build-solutions --quit || exit 0

- name: 🦺 Build Projects
run: dotnet build
run: dotnet build --no-restore

- name: 🧪 Run Tests
working-directory: Chickensoft.SaveFileBuilder.Tests
run: godot --headless --run-tests --quit-on-finish
run: dotnet test --no-build --verbosity normal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Godot.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<EnableDynamicLoading>true</EnableDynamicLoading>
<LangVersion>preview</LangVersion>
Expand All @@ -20,13 +20,26 @@

<ItemGroup>
<!-- Test executor. -->
<PackageReference Include="Chickensoft.GoDotTest" Version="2.0.28" />
<PackageReference Include="coverlet.collector" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Moq" Version="4.20.72" />
<!-- Assertions library. -->
<PackageReference Include="Shouldly" Version="4.3.0" />
<!-- Generated mocks. -->
<PackageReference Include="LightMock.Generator" Version="1.2.3" />
<!-- Convenience wrapper around generated mocks. -->
<PackageReference Include="LightMoq" Version="0.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="xunit.v3" Version="3.2.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
</ItemGroup>

<ItemGroup>
<Using Include="Xunit" />
<Using Include="Moq" />
</ItemGroup>

<ItemGroup>
Expand Down
Empty file.
75 changes: 50 additions & 25 deletions Chickensoft.SaveFileBuilder.Tests/badges/branch_coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 50 additions & 25 deletions Chickensoft.SaveFileBuilder.Tests/badges/line_coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading