Skip to content

Commit 460016c

Browse files
committed
Better fix for Linux.
1 parent 1c44472 commit 460016c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publishnuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: dotnet build -c Release --no-restore /p:Version="${{ github.event.release.tag_name }}"
3232

3333
- name: Run tests
34-
run: dotnet test -c Release --no-restore --no-build NUlid.Tests
34+
run: dotnet test -c Release --no-restore --no-build
3535

3636
- name: Create packages
3737
run: dotnet pack ${{ github.event.repository.name }} -c Release --no-restore --no-build -p:Version="${{ github.event.release.tag_name }}"

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
run: dotnet restore
2727

2828
- name: Run tests
29-
run: dotnet test --no-restore NUlid.Tests
29+
run: dotnet test --no-restore

NUlid.Tests/NUlid.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net48</TargetFrameworks>
4+
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">net9.0;net48</TargetFrameworks>
5+
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">net9.0</TargetFrameworks>
56
<IsPackable>false</IsPackable>
67
<LangVersion>latest</LangVersion>
78
<Configurations>Debug;Release</Configurations>

0 commit comments

Comments
 (0)