Skip to content

Commit fc85ea9

Browse files
committed
Add backend build step and use --no-build
In the reusable load concurrency workflow, add an explicit dotnet build for backend/src/Taskdeck.Api/Taskdeck.Api.csproj (Release, no-restore) before starting the API. Also pass --no-build to dotnet run so the already-built artifacts are used and an implicit rebuild is avoided. This ensures the API is built ahead of the load harness, speeds up CI, and prevents potential rebuild-related race conditions.
1 parent 6fedf2a commit fc85ea9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/reusable-load-concurrency-harness.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ jobs:
7777
working-directory: frontend/taskdeck-web
7878
run: npx playwright install --with-deps chromium
7979

80+
- name: Build backend
81+
run: dotnet build backend/src/Taskdeck.Api/Taskdeck.Api.csproj --configuration Release --no-restore
82+
8083
- name: Reset harness result folders
8184
run: |
8285
rm -f frontend/taskdeck-web/taskdeck.load.k6.ci.db
@@ -95,7 +98,7 @@ jobs:
9598
run: |
9699
set -euo pipefail
97100
98-
dotnet run --project backend/src/Taskdeck.Api/Taskdeck.Api.csproj --configuration Release --no-restore \
101+
dotnet run --project backend/src/Taskdeck.Api/Taskdeck.Api.csproj --configuration Release --no-restore --no-build \
99102
> frontend/taskdeck-web/test-results/load/backend-load-api.log 2>&1 &
100103
api_pid=$!
101104

0 commit comments

Comments
 (0)