test(ci): add Windows workflow and extended tests stage4-5; stabilize dashboard service tests
parent
d69817bf45
commit
0212ed6afc
@ -0,0 +1,34 @@
|
||||
name: CI-Windows-WindowsServiceStatus
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, feat/windows-service-status-auto ]
|
||||
pull_request:
|
||||
branches: [ main, feat/windows-service-status-auto ]
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup .NET SDK
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
distribution: "windows-hosted"
|
||||
sdk: [5.0.x, 6.0.x]
|
||||
- name: Restore NuGet packages
|
||||
run: dotnet restore
|
||||
- name: Build backend
|
||||
run: dotnet build -c Release
|
||||
- name: Run backend tests (Windows service tests)
|
||||
run: dotnet test tests/CncService.Tests/CncService.Tests.csproj -c Release -v minimal --filter "FullyQualifiedName~WindowsServiceCheckerTests|DashboardServiceTests"
|
||||
- name: Build frontend (optional, if frontend changes)
|
||||
run: |
|
||||
cd frontend
|
||||
npm ci
|
||||
npm run build
|
||||
- name: Run frontend tests (optional)
|
||||
if: always()
|
||||
run: |
|
||||
echo "Frontend test steps would run here (optional)"
|
||||
Loading…
Reference in New Issue