This example workflow file must be added to your repository's. In the following example, Test-Path is used to check that a file called resultsfile.log is present. To automate your testing with PowerShell and Pester, you can add a workflow that runs every time a change is pushed to your repository. We recommend that you have a basic understanding of PowerShell and Pester. For more information, see " Learn GitHub Actions." You should be familiar with YAML and the syntax for GitHub Actions. GitHub-hosted runners have a tools cache with pre-installed software, which includes PowerShell and Pester.įor a full list of up-to-date software and the pre-installed versions of PowerShell and Pester, see " About GitHub-hosted runners". It describes how to use Pester, install dependencies, test your module, and publish to the PowerShell Gallery. This guide shows you how to use PowerShell for CI.
0 Comments
Leave a Reply. |