You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haoliang-net/.github/workflows/ci-windows.yml

35 lines
1.1 KiB
YAML

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)"