Skip to content

Commit

Permalink
fixed path
Browse files Browse the repository at this point in the history
  • Loading branch information
tolik518 committed Oct 21, 2023
1 parent 9053147 commit 7c1207e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SoG_SGreader.Test/DataReaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 7c1207e

Please sign in to comment.