Skip to content

Commit 28dd555

Browse files
authored
fix: solve a test error
1 parent 018a618 commit 28dd555

1 file changed

Lines changed: 24 additions & 5 deletions

File tree

.github/workflows/trigger-PR-pipeline.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ name: Pipeline PR push
33
on:
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+
616
jobs:
717
# === LINUX ===
818
build-linux:
@@ -51,7 +61,10 @@ jobs:
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

Comments
 (0)