Bump Avalonia from 12.0.4 to 12.0.5 #178
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: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-test-security: | |
| name: Build, Integration Tests, Security Scan | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Verify OpenSSH client tools | |
| shell: pwsh | |
| run: | | |
| Get-Command "$env:WINDIR\System32\OpenSSH\sftp.exe" | |
| Get-Command "$env:WINDIR\System32\OpenSSH\scp.exe" | |
| Get-Command "$env:WINDIR\System32\OpenSSH\ssh-keygen.exe" | |
| - name: Restore | |
| shell: pwsh | |
| run: | | |
| dotnet restore ApacheMinaSSHD.NET.Bindings/ApacheMinaSSHD.NET.Bindings.csproj | |
| dotnet restore ApacheMinaSSHD.NET.Wrapper/ApacheMinaSSHD.NET.Wrapper.csproj | |
| dotnet restore ApacheMinaSSHD.NET.Wrapper.Tests/ApacheMinaSSHD.NET.Wrapper.Tests.csproj | |
| dotnet restore Sample/SimpleSSHDServer/SimpleSSHDServer.csproj | |
| - name: Build | |
| shell: pwsh | |
| run: | | |
| dotnet build ApacheMinaSSHD.NET.Bindings/ApacheMinaSSHD.NET.Bindings.csproj -c Release --no-restore | |
| dotnet build ApacheMinaSSHD.NET.Wrapper/ApacheMinaSSHD.NET.Wrapper.csproj -c Release --no-restore | |
| dotnet build ApacheMinaSSHD.NET.Wrapper.Tests/ApacheMinaSSHD.NET.Wrapper.Tests.csproj -c Release --no-restore | |
| dotnet build Sample/SimpleSSHDServer/SimpleSSHDServer.csproj -c Release --no-restore | |
| - name: Code style check | |
| shell: pwsh | |
| run: dotnet format ApacheMinaSSHD.NET.slnx --verify-no-changes --verbosity diagnostic | |
| - name: Unit tests | |
| shell: pwsh | |
| run: dotnet test ApacheMinaSSHD.NET.Wrapper.Tests/ApacheMinaSSHD.NET.Wrapper.Tests.csproj -c Release --no-build | |
| - name: Public API guard | |
| shell: pwsh | |
| run: ./eng/verify-public-api.ps1 -Configuration Release | |
| - name: XML documentation guard | |
| shell: pwsh | |
| run: ./eng/verify-xml-docs.ps1 -Configuration Release | |
| - name: Generate API reference | |
| shell: pwsh | |
| run: | | |
| dotnet tool install -g docfx --version 2.78.5 | |
| docfx metadata docs/.docfx/docfx.json --logLevel Warning | |
| docfx build docs/.docfx/docfx.json --logLevel Warning | |
| - name: Pack validation | |
| shell: pwsh | |
| run: | | |
| dotnet pack ApacheMinaSSHD.NET.Bindings/ApacheMinaSSHD.NET.Bindings.csproj -c Release --no-restore -o artifacts/nuget-ci /p:Version=0.0.0-ci.${{ github.run_number }} /p:PackageVersion=0.0.0-ci.${{ github.run_number }} | |
| dotnet pack ApacheMinaSSHD.NET.Wrapper/ApacheMinaSSHD.NET.Wrapper.csproj -c Release --no-restore -o artifacts/nuget-ci /p:Version=0.0.0-ci.${{ github.run_number }} /p:PackageVersion=0.0.0-ci.${{ github.run_number }} | |
| - name: Upload NuGet artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: nuget-ci-${{ github.run_number }} | |
| path: artifacts/nuget-ci/*.nupkg | |
| if-no-files-found: error | |
| - name: Client integration and stress tests | |
| shell: pwsh | |
| run: dotnet run -c Release --no-build --project Sample/SimpleSSHDServer/SimpleSSHDServer.csproj -- --integration-tests | |
| - name: Dependency and CVE scan | |
| shell: pwsh | |
| run: ./eng/security-scan.ps1 | |