Skip to content

Commit ac470b3

Browse files
committed
ci: update test.yaml
1 parent 8a164eb commit ac470b3

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/test.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,16 @@ jobs:
1515
id: test
1616
shell: powershell
1717
run: |
18-
Get-Command Update-Metadata
18+
Get-PackageProvider -Name Nuget -ForceBootstrap | Out-Null
19+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
20+
if ((Test-Path -Path ./requirements.psd1)) {
21+
if (-not (Get-Module -Name PSDepend -ListAvailable)) {
22+
Install-Module -Name PSDepend -Repository PSGallery -Scope CurrentUser -Force
23+
}
24+
Import-Module -Name PSDepend -Verbose:$false
25+
Invoke-PSDepend -Path './requirements.psd1' -Install -Import -Force -WarningAction SilentlyContinue
26+
} else {
27+
Write-Warning 'No [requirements.psd1] found. Skipping build dependency installation.'
28+
}
29+
Get-Command Update-Metadata -All
1930

0 commit comments

Comments
 (0)