github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/github/testdata/build-and-test/powershell.yaml (about)

     1  # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-powershell
     2  
     3  name: Test PowerShell on Ubuntu
     4  
     5  # on: push
     6  
     7  jobs:
     8    pester-test:
     9      name: Pester test
    10      runs-on: ubuntu-latest
    11      steps:
    12        - name: Check out repository code
    13          uses: actions/checkout@v3
    14        - name: Perform a Pester test from the command-line
    15          shell: pwsh
    16          run: Test-Path resultsfile.log | Should -Be $true
    17        - name: Perform a Pester test from the Tests.ps1 file
    18          shell: pwsh
    19          run: |-
    20            Invoke-Pester Unit.Tests.ps1 -Passthru