Skip to content

Commit 20c8539

Browse files
committed
fix test invocation
1 parent 0df695a commit 20c8539

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
run: dotnet publish examples/ingest-aot-smoketest
4848

4949
- name: Invoke AOT
50-
run: ./examples/ingest-aot-smoketest/bin/Release/net10.0/${{ matrix.os.folder }}/${{ matrix.os.binary }}
50+
run: ./.artifacts/bin/ingest-aot-smoketest/release/${{ matrix.os.binary }}
5151

5252
test-windows:
5353
runs-on: windows-latest

build/scripts/Targets.fs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ let private pristineCheck (arguments:ParseResults<Arguments>) =
4545
| _ -> failwithf "The checkout folder has pending changes, aborting"
4646

4747
let private test (arguments:ParseResults<Arguments>) =
48-
let junitOutput = Path.Combine(Paths.Output.FullName, "junit-{assembly}-{framework}-test-results.xml")
49-
let loggerPathArgs = sprintf "LogFilePath=%s" junitOutput
50-
let loggerArg = sprintf "--logger:\"junit;%s\"" loggerPathArgs
48+
let loggerArg = "--logger:GithubActions"
5149
exec "dotnet" ["test"; "-c"; "Release"; "--filter"; "FullyQualifiedName!~Elastic.Ingest.Elasticsearch.IntegrationTests"; loggerArg] |> ignore
5250

5351
let private generatePackages (arguments:ParseResults<Arguments>) =

tests/Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1111
</PackageReference>
1212
<PackageReference Include="XunitContext" Version="3.3.2" />
13+
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1">
14+
<PrivateAssets>all</PrivateAssets>
15+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16+
</PackageReference>
1317
</ItemGroup>
1418

1519
<PropertyGroup>

0 commit comments

Comments
 (0)