-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (23 loc) · 866 Bytes
/
Copy pathRunPesterTests.yml
File metadata and controls
26 lines (23 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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