@@ -3,6 +3,16 @@ name: Pipeline PR push
33on :
44 pull_request :
55
6+ env :
7+ TEST_PROJECTS : |
8+ tests/ByteSync.Client.IntegrationTests/ByteSync.Client.IntegrationTests.csproj
9+ tests/ByteSync.Client.Tests/ByteSync.Client.Tests.csproj
10+ tests/ByteSync.Common.Tests/ByteSync.Common.Tests.csproj
11+ tests/ByteSync.Functions.IntegrationTests/ByteSync.Functions.IntegrationTests.csproj
12+ tests/ByteSync.Functions.UnitTests/ByteSync.Functions.UnitTests.csproj
13+ tests/ByteSync.ServerCommon.Tests/ByteSync.ServerCommon.Tests.csproj
14+ test/ByteSync.TestsCommon/ByteSync.TestsCommon.csproj
15+
616jobs :
717 # === LINUX ===
818 build-linux :
5161 - run : dotnet restore --locked-mode
5262
5363 - name : Run Tests
54- run : dotnet test --no-restore --no-build
64+ run : for proj in $TEST_PROJECTS; do
65+ dotnet test "$proj" --no-restore --no-build
66+ done
67+ shell : bash
5568
5669 - name : Upload Test Results
5770 uses : actions/upload-artifact@v4
@@ -111,8 +124,11 @@ jobs:
111124 - run : dotnet restore --locked-mode
112125
113126 - name : Run Tests
114- run : dotnet test --no-restore --no-build
115-
127+ run : for proj in $TEST_PROJECTS; do
128+ dotnet test "$proj" --no-restore --no-build
129+ done
130+ shell : bash
131+
116132 - name : Upload Test Results
117133 uses : actions/upload-artifact@v4
118134 with :
@@ -171,8 +187,11 @@ jobs:
171187 - run : dotnet restore --locked-mode
172188
173189 - name : Run Tests
174- run : dotnet test --no-restore --no-build
175-
190+ run : for proj in $TEST_PROJECTS; do
191+ dotnet test "$proj" --no-restore --no-build
192+ done
193+ shell : bash
194+
176195 - name : Upload Test Results
177196 uses : actions/upload-artifact@v4
178197 with :
0 commit comments