Skip to content

Commit 544a125

Browse files
fix github ci action
1 parent 035dbcd commit 544a125

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/FSharp.CosmosDb.Analyzer.Tests/TestUtils.fs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ module TestUtils
33

44
open System
55

6-
let inline find file =
7-
// let basePath = match Environment.GetEnvironmentVariable("CI") with
8-
// | null -> __SOURCE_DIRECTORY__
9-
// | _ -> IO.Path.Combine(Environment.GetEnvironmentVariable("GITHUB_WORKSPACE"), "tests", "FSharp.CosmosDb.Analyzer.Tests")
10-
// IO.Path.Combine(basePath, file)
11-
IO.Path.Combine(__SOURCE_DIRECTORY__, file)
6+
let find file=
7+
let basePath =
8+
match Environment.GetEnvironmentVariable("GITHUB_WORKSPACE") with
9+
| null -> __SOURCE_DIRECTORY__
10+
| _ -> IO.Path.Combine(Environment.GetEnvironmentVariable("GITHUB_WORKSPACE"), "tests", "FSharp.CosmosDb.Analyzer.Tests")
11+
IO.Path.Combine(basePath, file)
1212

1313
let inline context file = AnalyzerBootstrap.context file

0 commit comments

Comments
 (0)