1111 PACKAGE_NAME : Compendium.PowerShell.nupkg
1212 ARTIFACT_NAME : Compendium.PowerShell
1313 NODE_VERSION : ' 18'
14- NUGET_VERSION : ' 6.5 .0'
14+ NUGET_VERSION : ' 6.3 .0'
1515defaults :
1616 run :
1717 shell : pwsh
1818jobs :
1919 SemanticVersion :
20- runs-on : ubuntu-latest
20+ runs-on : ubuntu-22.04
2121 outputs :
2222 semantic_version : ${{ steps.semantic_release.outputs.SEMANTIC_VERSION }}
2323 steps :
@@ -38,20 +38,22 @@ jobs:
3838 GH_TOKEN : ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
3939 GH_REF : ${{ github.ref }}
4040 Test :
41- runs-on : ubuntu-latest
41+ runs-on : ubuntu-22.04
4242 defaults :
4343 run :
4444 shell : pwsh
45- working-directory : src/Compendium.PowerShell/module
45+ working-directory : src/Compendium.PowerShell/Compendium
4646 steps :
4747 - name : Checkout
4848 uses : actions/checkout@v3
4949 with :
5050 persist-credentials : false
51- - name : terraform init
52- run : ./../../../build/scripts/Initialize-Terraform.ps1
51+ - name : Pester Tests
52+ run : ./../../../build/scripts/Test-PowerShell.ps1
53+ - name : PSScriptAnalyzer
54+ run : ./../../../build/scripts/Test-PowerShellLinting.ps1
5355 Build :
54- runs-on : ubuntu-latest
56+ runs-on : ubuntu-22.04
5557 needs :
5658 - SemanticVersion
5759 - Test
@@ -62,19 +64,19 @@ jobs:
6264 steps :
6365 - name : Checkout
6466 uses : actions/checkout@v3
65- - uses : nuget/setup-nuget@v1
67+ - uses : nuget/setup-nuget@v2
6668 with :
6769 nuget-version : ${{ env.NUGET_VERSION }}
6870 - name : Package Template
6971 run : ./../build/scripts/Export-Package.ps1 -Nuspec "Compendium.PowerShell.nuspec" -SemanticVersion "${{ needs.SemanticVersion.outputs.semantic_version }}"
7072 - name : Publish Artifact
71- uses : actions/upload-artifact@v3
73+ uses : actions/upload-artifact@v4
7274 with :
7375 name : ${{ env.ARTIFACT_NAME }}
7476 path : src/${{ env.PACKAGE_NAME }}
7577 Release :
7678 if : ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
77- runs-on : ubuntu-latest
79+ runs-on : ubuntu-22.04
7880 needs :
7981 - SemanticVersion
8082 - Build
@@ -85,11 +87,11 @@ jobs:
8587 - name : Checkout
8688 uses : actions/checkout@v3
8789 - name : Download Artifact
88- uses : actions/download-artifact@v3
90+ uses : actions/download-artifact@v4
8991 with :
9092 name : ${{ env.ARTIFACT_NAME }}
9193 path : a/${{ env.ARTIFACT_NAME }}
92- - uses : nuget/setup-nuget@v1
94+ - uses : nuget/setup-nuget@v2
9395 with :
9496 nuget-api-key : ${{ secrets.NUGETAPIKEY }}
9597 nuget-version : ${{ env.NUGET_VERSION }}
@@ -109,4 +111,4 @@ jobs:
109111 run : |
110112 ./build/scripts/Publish-Package.ps1 -PackagePath "a/${{ env.ARTIFACT_NAME }}/${{ env.PACKAGE_NAME }}"
111113 env :
112- NUGETSOURCE : ${{ vars.NUGETSOURCE }}
114+ NUGETSOURCE : ${{ vars.NUGETSOURCE }}
0 commit comments