9292 - name : Restore PowerShell Modules
9393 shell : pwsh
9494 run : |
95- Set-PSRepository PSGallery -InstallationPolicy Trusted
96- Install-Module PSql -Repository PSGallery -AllowPrerelease
95+ Set-PSRepository PSGallery -InstallationPolicy Trusted -Verbose
96+ Install-Module PSql -Repository PSGallery -AllowPrerelease -Verbose -PassThru
9797
9898 - name : Restore NuGet Packages
9999 run : dotnet restore
@@ -109,36 +109,58 @@ jobs:
109109 -p:TreatWarningsAsErrors=true
110110 -p:PackageOutputPath=${{ runner.temp }}/dist
111111
112- - name : Test
112+ - name : CI Diagnostics
113113 run : >
114- dotnet test --no-build -c Release
115- --settings Coverlet.runsettings
116- --results-directory:${{ runner.temp }}/coverage/raw
117- env :
118- MSSQL_SA_PASSWORD : ${{ secrets.MSSQL_SA_PASSWORD }}
119-
120- - name : Prepare Coverage Report
121- uses : danielpalme/ReportGenerator-GitHub-Action@5
122- # url: https://github.com/danielpalme/ReportGenerator-GitHub-Action
123- with :
124- reports : ${{ runner.temp }}/coverage/raw/**/coverage.opencover.xml
125- targetdir : ${{ runner.temp }}/coverage
126- reporttypes : Html;MarkdownSummaryGithub;Badges
127- verbosity : Warning
128-
129- - name : Publish Coverage Summary
130- run : >
131- { echo '## Coverage'; sed '/^#/d' "$REPORT_PATH"; } >> "$GITHUB_STEP_SUMMARY"
132- env :
133- REPORT_PATH : ${{ runner.temp }}/coverage/SummaryGithub.md
134-
135- - name : Save Coverage Report
136- uses : actions/upload-artifact@v4
137- # url: https://github.com/actions/upload-artifact
138- with :
139- name : Coverage Report
140- path : ${{ runner.temp }}/coverage
141- if-no-files-found : error
114+ echo
115+ echo Initial directory
116+ pwd
117+
118+ echo
119+ echo Going to PSql.Deploy.Tests/bin/Release/net6.0
120+ cd PSql.Deploy.Tests/bin/Release/net6.0
121+
122+ echo
123+ echo Current directory
124+ pwd
125+
126+ echo
127+ echo Recursive directory listing
128+ ls -FAlR
129+
130+ echo
131+ echo Contents of PSql.Deploy.psd1
132+ cat PSql.Deploy.Tests/bin/Release/net6.0/PSql.Deploy.psd1
133+
134+ # - name: Test
135+ # run: >
136+ # dotnet test --no-build -c Release
137+ # --settings Coverlet.runsettings
138+ # --results-directory:${{ runner.temp }}/coverage/raw
139+ # env:
140+ # MSSQL_SA_PASSWORD: ${{ secrets.MSSQL_SA_PASSWORD }}
141+
142+ # - name: Prepare Coverage Report
143+ # uses: danielpalme/ReportGenerator-GitHub-Action@5
144+ # #url: https://github.com/danielpalme/ReportGenerator-GitHub-Action
145+ # with:
146+ # reports: ${{ runner.temp }}/coverage/raw/**/coverage.opencover.xml
147+ # targetdir: ${{ runner.temp }}/coverage
148+ # reporttypes: Html;MarkdownSummaryGithub;Badges
149+ # verbosity: Warning
150+
151+ # - name: Publish Coverage Summary
152+ # run: >
153+ # { echo '## Coverage'; sed '/^#/d' "$REPORT_PATH"; } >> "$GITHUB_STEP_SUMMARY"
154+ # env:
155+ # REPORT_PATH: ${{ runner.temp }}/coverage/SummaryGithub.md
156+
157+ # - name: Save Coverage Report
158+ # uses: actions/upload-artifact@v4
159+ # #url: https://github.com/actions/upload-artifact
160+ # with:
161+ # name: Coverage Report
162+ # path: ${{ runner.temp }}/coverage
163+ # if-no-files-found: error
142164
143165 - name : Save Module
144166 uses : actions/upload-artifact@v4
@@ -148,26 +170,26 @@ jobs:
148170 path : ${{ runner.temp }}/dist
149171 if-no-files-found : error
150172
151- - name : Publish Module
152- if : startsWith(github.ref, 'refs/tags/release/')
153- run : >
154- dotnet nuget push "${{ runner.temp }}/dist/*.nupkg"
155- -s https://www.powershellgallery.com/
156- -k "$PSGALLERY_API_KEY"
157- --skip-duplicate
158- --no-symbols
159- env :
160- PSGALLERY_API_KEY : ${{ secrets.PSGALLERY_API_KEY }}
161-
162- - name : Create Release
163- uses : ncipollo/release-action@v1
164- # url: https://github.com/ncipollo/release-action
165- if : startsWith(github.ref, 'refs/tags/release/')
166- with :
167- name : ${{ steps.stamp.outputs.version }}
168- prerelease : ${{ contains('-', steps.stamp.outputs.version) }}
169- draft : true
170- bodyFile : CHANGES.md
171- artifacts : ${{ runner.temp }}/dist/*nupkg
172- artifactErrorsFailBuild : true
173- token : ${{ secrets.GITHUB_TOKEN }}
173+ # - name: Publish Module
174+ # if: startsWith(github.ref, 'refs/tags/release/')
175+ # run: >
176+ # dotnet nuget push "${{ runner.temp }}/dist/*.nupkg"
177+ # -s https://www.powershellgallery.com/
178+ # -k "$PSGALLERY_API_KEY"
179+ # --skip-duplicate
180+ # --no-symbols
181+ # env:
182+ # PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
183+
184+ # - name: Create Release
185+ # uses: ncipollo/release-action@v1
186+ # #url: https://github.com/ncipollo/release-action
187+ # if: startsWith(github.ref, 'refs/tags/release/')
188+ # with:
189+ # name: ${{ steps.stamp.outputs.version }}
190+ # prerelease: ${{ contains('-', steps.stamp.outputs.version) }}
191+ # draft: true
192+ # bodyFile: CHANGES.md
193+ # artifacts: ${{ runner.temp }}/dist/*nupkg
194+ # artifactErrorsFailBuild: true
195+ # token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments