get-config path #18
Workflow file for this run
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
name: PowerShell Module CI | |
env: | |
# Set the release type of the release, valid values are 'major', 'minor' or 'patch' | |
RELEASE_TYPE: "patch" | |
# override version boolean. If specified, valid vlaues are 'true' or 'false' | |
OVERRIDE_VERSION: "false" | |
on: [push] | |
jobs: | |
validate-env-variables: | |
runs-on: ubuntu-latest | |
steps: | |
- shell: pwsh | |
run: | | |
# validate release type variables | |
$env:OVERRIDE_VERSION | Should -BeIn @('true', 'false') | |
$env:RELEASE_TYPE | Should -BeIn @('major','minor','patch') | |
clone: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
Publish-PowerShell-Artifact: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
env: | |
Source: "CodeArtifact" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
PowerShell | |
- shell: pwsh | |
run: | | |
. "./PowerShell/Deploy/BuildNuspecFromPsd1.ps1" -RequiredModulesRepo PSGallery | |
Validate-Module: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
PowerShell | |
- shell: pwsh | |
run: | | |
. "./PowerShell/JumpCloud Module/Tests/InvokePester.ps1" -ModuleValidation |