Fix CI failure: AMNSecurityUtils.SetFipsMode one-shot per JVM lifetime #59
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@v4 | |
| 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/SimpleSSHDSever/SimpleSSHDSever.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/SimpleSSHDSever/SimpleSSHDSever.csproj -c Release --no-restore | |
| - 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: 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@v4 | |
| 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/SimpleSSHDSever/SimpleSSHDSever.csproj -- --integration-tests | |
| - name: Dependency and CVE scan | |
| shell: pwsh | |
| run: ./eng/security-scan.ps1 | |