github · GitHub Actions Docs
Actions Building and testing PowerShell - GitHub Docs
A tutorial demonstrating how to set up a GitHub Actions workflow to automate the building and testing of PowerShell code.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Actions Building and testing PowerShell - GitHub Docs
A tutorial demonstrating how to set up a GitHub Actions workflow to automate the building and testing of PowerShell code.
When To Use
Use when you need to automate the continuous integration of PowerShell scripts to ensure they build and pass tests on every push or pull request.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-build-and-test-powershell-building-testing-github-docs-workflow-guide.md | A tutorial guide on creating a GitHub Actions workflow to build and test PowerShell projects using Pester. | Questions about a tutorial guide on creating a GitHub Actions workflow to build and test PowerShell projects using Pester. |
examples/actions-build-and-test-powershell-building-testing-github-docs-github-ac.text | A GitHub Actions workflow YAML configuration that uses Pester to run PowerShell tests on an Ubuntu runner. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration that uses Pester to run PowerShell tests on an Ubuntu runner. |
examples/actions-build-and-test-powershell-building-testing-github-docs-github-ac-2.text | A PowerShell script using the Pester framework to verify the existence of a results file within a GitHub Actions workflow. | Exact payloads, commands, or snippets shown in A PowerShell script using the Pester framework to verify the existence of a results file within a GitHub Actions work... |
examples/actions-build-and-test-powershell-building-testing-github-docs-github-ac-3.text | A GitHub Actions workflow YAML configuration demonstrating how to install modules from PSGallery and run PowerShell scripts on an ubuntu-latest runner. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration demonstrating how to install modules from PSGallery and run PowerShell s... |
examples/actions-build-and-test-powershell-building-testing-github-docs-github-ac-4.text | A GitHub Actions workflow YAML configuration demonstrating how to cache, install, and run PowerShell modules for building and testing code. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration demonstrating how to cache, install, and run PowerShell modules for buil... |
examples/actions-build-and-test-powershell-building-testing-github-docs-github-ac-5.text | A GitHub Actions workflow YAML configuration that installs and runs PSScriptAnalyzer to lint PowerShell scripts on an ubuntu-latest runner. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration that installs and runs PSScriptAnalyzer to lint PowerShell scripts on an... |
examples/actions-build-and-test-powershell-building-testing-github-docs-github-ac-6.text | A GitHub Actions workflow YAML configuration that runs Pester tests in PowerShell and uploads the results as an artifact. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration that runs Pester tests in PowerShell and uploads the results as an artif... |
examples/actions-build-and-test-powershell-building-testing-github-docs-github-ac-7.text | A GitHub Actions workflow YAML example that builds and publishes a PowerShell module to a NuGet gallery using pwsh. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML example that builds and publishes a PowerShell module to a NuGet gallery using pwsh. |
What This Skill Covers
-
- GitHub Actions / - Tutorials / - Build and test code / - PowerShell
- Main sections:
In this article,Introduction,Prerequisites,Adding a workflow for Pester,PowerShell module locations.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://docs.github.com/en/actions/tutorials/build-and-test-code/powershell
