Skip to content

10-add-get-fogversion #13

10-add-get-fogversion

10-add-get-fogversion #13

Workflow file for this run

name: Test Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Run build script
run: |
# Install-PSResource -Name PlatyPS -TrustRepository -Version 0.14.2 -Scope CurrentUser -AcceptLicense
$moduleName="FogApi";
.\invoke-modulebuild.ps1
$builtPath = ".\_module_build\$moduleName"
ls -recurse $builtPath;
if (Test-Modulemanifest -path "$builtPath\$moduleName.psd1") {
if (import-module "$builtPath\") {
"Built module imported successfully!"
return $true;
} else {
Write-Error "Failed to import module!"
return $false;
}
} else {
Write-Error "Manifest threw error"
return $false;
}