-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
18 changed files
with
292 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: [ "main", release-*, develop ] | ||
pull_request: | ||
branches: [ "main", release-*, develop ] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of commits | ||
submodules: 'true' | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
- name: Run FishyFlip.Tests | ||
run: dotnet test src/FishyFlip.Tests/FishyFlip.Tests.csproj -- --report-trx --results-directory ../../dotnet-test-results | ||
|
||
- name: Run WhiteWindLib.Tests | ||
run: dotnet test src/WhiteWindLib.Tests/WhiteWindLib.Tests.csproj -- --report-trx --results-directory ../../dotnet-test-results | ||
|
||
- name: Upload Test Results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dotnet-test-results | ||
path: dotnet-test-results | ||
if: ${{ always() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Project Sdk="MSTest.Sdk/3.6.0"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<IsPackable>false</IsPackable> | ||
<IsTestProject>true</IsTestProject> | ||
<EnableMSTestRunner>true</EnableMSTestRunner> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<RunSettingsFilePath>$(MSBuildProjectDirectory)\fishyflip.runsettings</RunSettingsFilePath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Debug"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\FishyFlip\FishyFlip.csproj"/> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// <copyright file="GlobalUsings.cs" company="Drastic Actions"> | ||
// Copyright (c) Drastic Actions. All rights reserved. | ||
// </copyright> | ||
|
||
global using System.IdentityModel.Tokens.Jwt; | ||
global using System.Net.Http.Headers; | ||
global using System.Net.WebSockets; | ||
global using System.Text; | ||
global using System.Text.Encodings; | ||
global using System.Text.Json; | ||
global using System.Text.Json.Serialization; | ||
global using System.Text.RegularExpressions; | ||
global using System.Timers; | ||
global using FishyFlip.Events; | ||
global using FishyFlip.Models; | ||
global using FishyFlip.Models.Internal; | ||
global using FishyFlip.Tools; | ||
global using FishyFlip.Tools.Cbor; | ||
global using FishyFlip.Tools.Json; | ||
global using Ipfs; | ||
global using Microsoft.Extensions.Logging; | ||
global using Microsoft.IdentityModel.Tokens; | ||
global using Microsoft.Testing; | ||
global using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
global using PeterO.Cbor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# FishyFlip.Tests | ||
|
||
To run the tests, create a copy of `fishyflip.runsettings.sample` and rename it `fishyflip.runsettings`. Then, fill in the handle name and password fields. |
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.