Skip to content

Commit

Permalink
Create Pester workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rhymeswithmogul committed Jul 3, 2023
1 parent 20f9001 commit 52ace1a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/run-pester-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Run Pester tests
on: push

jobs:
pester-test-pwsh:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Run Pester tests (PowerShell)
shell: pwsh
run: |
Write-Output "Testing with $($PSVersionTable.PSVersion)."
Set-PSRepository 'PSGallery' -InstallationPolicy 'Trusted'
Install-Module -Name 'Pester' -Confirm:$false -Force
Invoke-Pester -Name 'SecurityTxtToolkit.Tests.ps1' -PassThru

0 comments on commit 52ace1a

Please sign in to comment.