diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09aeeb66..0d3dc8eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,42 +19,8 @@ defaults: shell: powershell jobs: - spec: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [windows-2022] - tag: [General, Unit] - include: - - tag: General - results_file: General.Results.xml - - tag: Unit - results_file: Unit.Results.xml - - steps: - - name: "checkout" - uses: actions/checkout@v3 - - - name: "install modules" - uses: potatoqualitee/psmodulecache@v5.1 - with: - shell: powershell - modules-to-cache: ${{ env.module_cache }} - - - name: "configure winrm" - run: | - Write-Host 'Ensuring WinRM is configured for DSC' - Get-ChildItem WSMan:\localhost\Listener\ -OutVariable Listeners | Format-List * -Force - $HTTPListener = $Listeners | Where-Object -FilterScript { $_.Keys.Contains('Transport=HTTP') } - If ($HTTPListener.Count -eq 0) { - winrm create winrm/config/Listener?Address=*+Transport=HTTP - winrm e winrm/config/listener - } - acceptance: runs-on: ${{ matrix.os }} - needs: "spec" strategy: fail-fast: false matrix: @@ -98,10 +64,10 @@ jobs: winrm e winrm/config/listener } - # - name: Install Winget - # shell: pwsh - # run: | - # winget || iwr -useb https://aka.ms/winget/install | iex + - name: Install Winget + run: | + winget --help + # winget || iwr -useb https://aka.ms/winget/install | iex - name: Set up Ruby uses: ruby/setup-ruby@v1