Skip to content

Commit 1d5cf35

Browse files
committed
Add test run to test isElevated
1 parent c2ae50b commit 1d5cf35

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
run: dotnet restore
1111
- name: Publish for win-x64
1212
run: dotnet publish -r win-x64
13+
- name: Test run
14+
run: ./bin/Release/net8.0/win-x64/publish/WinFileReadEvents.exe testRun
1315
- name: Get version
1416
id: package_version
1517
uses: KageKirin/get-csproj-version@v0

Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ static void Main(string[] args)
1515

1616
string? filePath = (args.Length < 1) ? null : args[0];
1717

18+
if (filePath == "testRun") {
19+
Console.WriteLine("x|testRun");
20+
return;
21+
}
22+
1823
using var session = new TraceEventSession("FileRead");
1924

2025
Console.CancelKeyPress += (sender, e) => session.Stop();

WinFileReadEvents.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<RootNamespace>WinFileReadEvents</RootNamespace>
1010
<ImplicitUsings>enable</ImplicitUsings>
1111
<Nullable>enable</Nullable>
12-
<Version>0.1.1</Version>
12+
<Version>0.1.2</Version>
1313
</PropertyGroup>
1414

1515
<ItemGroup>

0 commit comments

Comments
 (0)