Skip to content

Commit 7a7a8c4

Browse files
author
Your Name
committed
fix macos
1 parent 288df66 commit 7a7a8c4

File tree

2 files changed

+33
-14
lines changed

2 files changed

+33
-14
lines changed

.github/workflows/pws-workflow-macos.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
- name: "Lint with PSScriptAnalyzer"
2727
shell: pwsh
2828
run: |
29-
Write-Host $(Join-Path -Path $(Get-Location) -ChildPath "\scripts\*.ps1")
30-
$workdir = $(Join-Path -Path $(Get-Location) -ChildPath "\scripts\*.ps1")
29+
Write-Host $(Join-Path -Path $(Get-Location) -ChildPath "/scripts/*.ps1")
30+
$workdir = $(Join-Path -Path $(Get-Location) -ChildPath "/scripts/*.ps1")
3131
Write-Host $workdir
3232
Invoke-ScriptAnalyzer -Path $workdir -Recurse -Outvariable issues
3333
$errors = $issues.Where({$_.Severity -eq 'Error'})
@@ -36,19 +36,11 @@ jobs:
3636
Write-Error "There were $($errors.Count) errors and $($warnings.Count) warnings total." -ErrorAction Stop
3737
} else {
3838
Write-Output "There were $($errors.Count) errors and $($warnings.Count) warnings total."
39-
}
40-
# - name: "silent install sysinternals"
41-
# run: .\scripts\Install_Sysinternals.ps1
42-
# shell: pwsh
43-
# - name: "silent install firefox"
44-
# run: .\scripts\Install_FireFox.ps1
45-
# shell: pwsh
39+
}
4640
- name: "test verbose"
4741
run: ./scripts/Test_Verbose.ps1
4842
shell: pwsh
49-
# - name: "windows version"
50-
# run: .\scripts\Windows_Version.ps1
51-
# shell: pwsh
43+
5244

5345
# https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-powershell
5446
pester-test:
@@ -66,6 +58,10 @@ jobs:
6658
shell: pwsh
6759
run: |
6860
Invoke-Pester Unit.Tests.ps1 -Passthru
61+
- name: "Perform a Pester test from the Tests.ps1 file"
62+
shell: pwsh
63+
run: |
64+
Invoke-Pester /scripts/Test_Verbose.ps1 -Passthru
6965
7066
# https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-powershell#packaging-workflow-data-as-artifacts
7167
upload-pester-results:
@@ -81,7 +77,7 @@ jobs:
8177
- name: "Upload test results"
8278
uses: actions/upload-artifact@v2
8379
with:
84-
name: ubuntu-Unit-Tests
80+
name: macos-Unit-Tests
8581
path: Unit.Tests.xml
8682
if: ${{ always() }}
8783

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
11
# powershell-sandbox
2-
powershell
2+
3+
~~~
4+
Using a specific shell
5+
https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
6+
7+
8+
https://github.com/PowerShell/PowerShell
9+
10+
PSScriptAnalyzer is a static code checker for PowerShell modules and scripts.
11+
https://github.com/PowerShell/PSScriptAnalyzer
12+
13+
Pester is the ubiquitous test and mock framework for PowerShell.
14+
https://github.com/pester/Pester
15+
16+
PSDeploy
17+
The idea is that you write a *.psdeploy.ps1 deployment configuration with sources and targets, and PSDeploy will deploy these.
18+
https://github.com/RamblingCookieMonster/PSDeploy
19+
20+
PowerShell Gallery
21+
The central repository for sharing and acquiring PowerShell code including PowerShell modules, scripts, and DSC resources
22+
https://www.powershellgallery.com/
23+
24+
~~~
25+

0 commit comments

Comments
 (0)