Skip to content

Commit 3d5d202

Browse files
authored
ci: build once during testing
1 parent 0d09495 commit 3d5d202

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,21 @@ jobs:
136136
8.0.x
137137
9.0.x
138138
139+
- name: 🧪 Build project
140+
run: dotnet build -c release
141+
139142
- name: 🧪 Run unit tests
140143
if: matrix.os != 'macos-latest'
141144
run: |
142-
dotnet test -c release --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f netcoreapp3.1
143-
dotnet test -c release --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f net5.0
145+
dotnet test -c release --no-build --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f netcoreapp3.1
146+
dotnet test -c release --no-build --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f net5.0
144147
145148
- name: 🧪 Run unit tests
146149
run: |
147-
dotnet test -c release --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f net6.0
148-
dotnet test -c release --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f net7.0
149-
dotnet test -c release --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f net8.0
150-
dotnet test -c release --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f net9.0
150+
dotnet test -c release --no-build --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f net6.0
151+
dotnet test -c release --no-build --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f net7.0
152+
dotnet test -c release --no-build --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f net8.0
153+
dotnet test -c release --no-build --blame --blame-crash --blame-hang -p:VSTestUseMSBuildOutput=false -f net9.0
151154
152155
- name: 📛 Upload hang- and crash-dumps on test failure
153156
if: failure()

0 commit comments

Comments
 (0)