Skip to content

Commit 5fb04f4

Browse files
author
James Brundage
committed
Updating workflow (using PSSVG)
1 parent eb6de96 commit 5fb04f4

3 files changed

Lines changed: 28 additions & 5 deletions

File tree

.github/workflows/TestAndPublish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,12 +570,15 @@ jobs:
570570
}
571571
}
572572
} @Parameters
573-
BuildPipescript:
573+
BuildPipeScript:
574574
runs-on: ubuntu-latest
575575
if: ${{ success() }}
576576
steps:
577577
- name: Check out repository
578578
uses: actions/checkout@v2
579+
- name: Use PSSVG Action
580+
uses: StartAutomating/PSSVG@main
581+
id: PSSVG
579582
- name: UsePiecemeal
580583
uses: StartAutomating/Piecemeal@main
581584
- name: BuildPipeScript

Github/Jobs/BuildPipeScript.psd1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@{
2+
"runs-on" = "ubuntu-latest"
3+
if = '${{ success() }}'
4+
steps = @(
5+
@{
6+
name = 'Check out repository'
7+
uses = 'actions/checkout@v2'
8+
},
9+
@{
10+
name = 'Use PSSVG Action'
11+
uses = 'StartAutomating/PSSVG@main'
12+
id = 'PSSVG'
13+
},
14+
'RunPiecemeal',
15+
'RunPipeScript',
16+
'RunEZOut',
17+
'RunHelpOut'
18+
)
19+
}
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#requires -Module PSDevOps
2-
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, UsePiecemeal, BuildPipeScript, RunEZOut, HelpOut -Environment @{
2+
Import-BuildStep -ModuleName PipeScript
3+
Push-Location $PSScriptRoot
4+
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, BuildPipeScript -Environment @{
35
NoCoverage = $true
4-
}|
5-
Set-Content .\.github\workflows\TestAndPublish.yml -Encoding UTF8 -PassThru
6-
6+
} -OutputPath .\.github\workflows\TestAndPublish.yml
7+
Pop-Location

0 commit comments

Comments
 (0)