diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 56901955..e456ea8a 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -7,9 +7,15 @@ on: types: [ opened, reopened ] jobs: - + run-tests: + runs-on: ubuntu-20.04 + steps: + - run: dotnet test + continue-on-error: true + build-gui: runs-on: windows-latest + needs: [run-tests] env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true diff --git a/TwitchDownloaderCore.Tests/ToolTests/FilenameServiceTests.cs b/TwitchDownloaderCore.Tests/ToolTests/FilenameServiceTests.cs index 2a6a02cc..38730a6a 100644 --- a/TwitchDownloaderCore.Tests/ToolTests/FilenameServiceTests.cs +++ b/TwitchDownloaderCore.Tests/ToolTests/FilenameServiceTests.cs @@ -23,6 +23,7 @@ private static (string title, string id, DateTime date, string channel, TimeSpan [InlineData("{length_custom=\"hh\\-mm\\-ss\"}", "04-04-04")] public void CorrectlyGeneratesIndividualTemplates(string template, string expected) { + Assert.Fail(); var (title, id, date, channel, trimStart, trimEnd, viewCount, game) = GetExampleInfo(); var result = FilenameService.GetFilename(template, title, id, date, channel, trimStart, trimEnd, viewCount, game);