update -> deep LN discovery #79
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Restore and build Windows desktop app | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Checkout ARIEC61850 engine | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: masarray/ARIEC61850 | |
| path: .deps/ARIEC61850 | |
| - name: Link ARIEC61850 project reference | |
| shell: pwsh | |
| run: | | |
| $target = (Resolve-Path ".deps/ARIEC61850").Path | |
| $link = Join-Path (Split-Path $env:GITHUB_WORKSPACE -Parent) "ARIEC61850" | |
| if (Test-Path $link) { | |
| Remove-Item $link -Recurse -Force | |
| } | |
| New-Item -ItemType Junction -Path $link -Target $target | Out-Null | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Restore | |
| run: dotnet restore ARServer.sln | |
| - name: Build | |
| run: dotnet build ARServer.sln --configuration Release --no-restore | |
| - name: Run tests when test projects exist | |
| shell: pwsh | |
| run: | | |
| $testProjects = Get-ChildItem -Recurse -Filter *.csproj | Where-Object { $_.FullName -match '(?i)(test|tests)' } | |
| if (-not $testProjects) { | |
| Write-Host "No test projects found. Skipping dotnet test." | |
| return | |
| } | |
| foreach ($project in $testProjects) { | |
| dotnet test $project.FullName --configuration Release --no-build --verbosity normal | |
| } |