26
26
- name : " Lint with PSScriptAnalyzer"
27
27
shell : pwsh
28
28
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")
31
31
Write-Host $workdir
32
32
Invoke-ScriptAnalyzer -Path $workdir -Recurse -Outvariable issues
33
33
$errors = $issues.Where({$_.Severity -eq 'Error'})
@@ -36,19 +36,11 @@ jobs:
36
36
Write-Error "There were $($errors.Count) errors and $($warnings.Count) warnings total." -ErrorAction Stop
37
37
} else {
38
38
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
+ }
46
40
- name : " test verbose"
47
41
run : ./scripts/Test_Verbose.ps1
48
42
shell : pwsh
49
- # - name: "windows version"
50
- # run: .\scripts\Windows_Version.ps1
51
- # shell: pwsh
43
+
52
44
53
45
# https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-powershell
54
46
pester-test :
66
58
shell : pwsh
67
59
run : |
68
60
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
69
65
70
66
# https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-powershell#packaging-workflow-data-as-artifacts
71
67
upload-pester-results :
81
77
- name : " Upload test results"
82
78
uses : actions/upload-artifact@v2
83
79
with :
84
- name : ubuntu -Unit-Tests
80
+ name : macos -Unit-Tests
85
81
path : Unit.Tests.xml
86
82
if : ${{ always() }}
87
83
0 commit comments