Skip to content

Updates

Updates #41

name: RunPesterTests Tatux.Utils
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
test-pwsh:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Run Pester tests
run: |
echo ${{ github.workspace }}
Set-PSRepository psgallery -InstallationPolicy trusted
Install-Module -Name Pester,PSScriptAnalyzer -Confirm:$false -Force
Invoke-Pester -Path "${{ github.workspace }}\Modules\Tatux.Utils\Public\Tests" -Passthru
Invoke-Pester -Path "${{ github.workspace }}\Modules\Tatux.Utils\Private\Tests" -Passthru
shell: pwsh