From 7c1207e000e30ce7696fb4c3398d562677ca1cf5 Mon Sep 17 00:00:00 2001 From: Anatolij Vasilev Date: Sat, 21 Oct 2023 12:00:38 +0200 Subject: [PATCH] fixed path --- SoG_SGreader.Test/DataReaderTests.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SoG_SGreader.Test/DataReaderTests.cs b/SoG_SGreader.Test/DataReaderTests.cs index d2c0531..5360ab4 100644 --- a/SoG_SGreader.Test/DataReaderTests.cs +++ b/SoG_SGreader.Test/DataReaderTests.cs @@ -19,9 +19,8 @@ private static Player GetSaveGame(int saveGameNumber) string projectDirectory = Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.Parent.Parent.FullName; // Exception for GitHub Actions Test Runner - if (Environment.GetEnvironmentVariable("GITHUB_WORKSPACE") != null) - { - projectDirectory = Directory.GetParent(Environment.GetEnvironmentVariable("GITHUB_WORKSPACE")).FullName; + if (Environment.GetEnvironmentVariable("GITHUB_WORKSPACE") != null) { + projectDirectory = Environment.GetEnvironmentVariable("GITHUB_WORKSPACE"); } string filePath = Path.Combine(projectDirectory, "SoG_SGreader.Test", "SaveGames", saveGameNumber + ".cha");