Prepare RestSetAcls for PowerShellGallery publish (#218) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test RestSetAcls | |
on: | |
push: | |
paths: | |
- ".github/workflows/RestSetAcls.yml" | |
- "RestSetAcls/**" | |
pull_request: | |
paths: | |
- ".github/workflows/RestSetAcls.yml" | |
- "RestSetAcls/**" | |
jobs: | |
pester-test: | |
name: Pester test | |
runs-on: windows-latest | |
defaults: | |
run: | |
working-directory: .\RestSetAcls | |
shell: pwsh | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Run all Pester tests | |
run: | | |
.\init.ps1 | |
.\test.ps1 | |
Check-manifest: | |
name: Check .psd1 manifest file | |
runs-on: windows-latest | |
defaults: | |
run: | |
working-directory: .\RestSetAcls | |
shell: pwsh | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check .psd1 file with Test-ModuleManifest | |
run: | | |
.\init.ps1 | |
.\check-manifest.ps1 | |
lint-with-PSScriptAnalyzer: | |
name: Install and run PSScriptAnalyzer | |
runs-on: windows-latest | |
defaults: | |
run: | |
working-directory: .\RestSetAcls | |
shell: pwsh | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Lint with PSScriptAnalyzer | |
run: | | |
.\init.ps1 | |
.\lint.ps1 |