docs: Add solution to ReadMe #10
This file contains 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: build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build-and-test-on-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo source code | |
uses: actions/checkout@v3 | |
- name: Display PowerShell version being used | |
shell: pwsh | |
run: $PSVersionTable | |
- name: Run Pester Tests | |
shell: pwsh | |
run: | | |
Write-Output "Pester version being used:" | |
Import-Module -Name Pester | |
Get-Module -Name Pester | |
Write-Output "Running all Pester tests in the repo:" | |
Invoke-Pester | |
build-and-test-on-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout the repo source code | |
uses: actions/checkout@v3 | |
- name: Display PowerShell version being used | |
shell: pwsh | |
run: $PSVersionTable | |
- name: Run Pester Tests | |
shell: pwsh | |
run: | | |
Write-Output "Pester version being used:" | |
Import-Module -Name Pester | |
Get-Module -Name Pester | |
Write-Output "Running all Pester tests in the repo:" | |
Invoke-Pester |