-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (24 loc) · 992 Bytes
/
Copy pathpester.yml
File metadata and controls
25 lines (24 loc) · 992 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
name: Pester Testing
run-name: ${{ github.actor }} is using GitHub Actions 🚀
on:
#[push]
workflow_dispatch:
jobs:
lint-with-PSScriptAnalyzer:
name: Install and run PSScriptAnalyzer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Pester and PSScriptAnalyzer module
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module -Name Pester -RequiredVersion 4.10.0 -ErrorAction Stop
Install-Module PSScriptAnalyzer -ErrorAction Stop
- name: Lint with Pester
shell: pwsh
run: |
Invoke-Pester /home/runner/work/OGraph/OGraph/tests/Help.Tests.ps1 -Passthru
Invoke-Pester /home/runner/work/OGraph/OGraph/tests/Module.Tests.ps1 -Passthru
Invoke-Pester /home/runner/work/OGraph/OGraph/tests/Pester.Tests.ps1 -Passthru
Invoke-Pester /home/runner/work/OGraph/OGraph/tests/ScriptAnalyzer.Tests.ps1 -Passthru