-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created Get-FogVersion and implmented check for 1.6 version so correct dynamic parameters are used for 1.5.x vs 1.6 Also added a separate build test script for running a build test on each push. * Add get-fogversion #10 - Updated dynamic params to be contextual to the version * doc updates * Cleaned up a couple things * Added separate build script for use with testing builds on each push * Increment version, update release notes * trailing slash for import test * try psscript root * try importing with manifest * fix build test script path syntax * fix test for if module imported * don't error when testing import, wait for check for loaded module * Add built test badge to show if current master branch is passing build test
- Loading branch information
1 parent
0d249b2
commit 585b3b0
Showing
60 changed files
with
2,529 additions
and
267 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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") { | ||
import-module "$builtPath\" -ea 0 | ||
if ($null -ne (Get-module $modulename -ea 0)) { | ||
"Built module imported successfully!`n$((Get-module $modulename) | out-string)" | out-host | ||
return $true; | ||
} else { | ||
Write-Error "Failed to import module!" | ||
return $false; | ||
} | ||
} else { | ||
Write-Error "Manifest threw error" | ||
return $false; | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
_build | ||
_module_build | ||
.lastprereqrun |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.