Migrate .NET listener to use folders/namespaces, to better manage the… #2041
Workflow file for this run
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: Pode CI - Powershell Desktop | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| - '!gh-pages' | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| - 'pode.build.ps1' | |
| - '.github/workflows/ci-powershell.yml' | |
| pull_request: | |
| branches: | |
| - '*' | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| - 'pode.build.ps1' | |
| - '.github/workflows/ci-powershell.yml' | |
| env: | |
| INVOKE_BUILD_VERSION: '5.14.22' | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check PowerShell version | |
| shell: powershell | |
| run: | | |
| $PSVersionTable.PSVersion | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 9.x | |
| - name: Install Invoke-Build | |
| shell: powershell | |
| run: | | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser | |
| - name: Run Pester Tests | |
| shell: powershell | |
| run: | | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| Invoke-Build Test | |
| - name: Build Packages | |
| shell: powershell | |
| run: | | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| Invoke-Build Pack |