Skip to content

RunPesterTests

RunPesterTests #12

Workflow file for this run

name: RunPesterTests
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: write # Update permissions to allow writing
jobs:
build:
permissions:
contents: write # Update permissions to allow writing
name: RunPesterTests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set up Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Run Pester Tests
run: |
#pwsh .github/scripts/RunPesterTests.ps1
Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor
Set-PSRepository psgallery -InstallationPolicy trusted
Install-Module -Name Pester -RequiredVersion 5.0.4 -confirm:$false -Force
Invoke-Pester -path .src/tests/
shell: pwsh