Test adding Import-Module for PSScriptAnalyzer

This commit is contained in:
Kevin Rowlandson 2020-06-30 14:09:17 +01:00
parent 0b7f7ea2dc
commit 6f1b121b3f
No known key found for this signature in database
GPG key ID: F33348ACAE26BE84

View file

@ -49,7 +49,8 @@ RUN mkdir -p /opt/microsoft/powershell/7 \
| xargs -n 1 wget -O - \
| tar -xzC /opt/microsoft/powershell/7 \
&& ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh \
&& pwsh -c 'Install-Module -Name PSScriptAnalyzer -Repository PSGallery -RequiredVersion ${PSSA_VERSION} -Scope CurrentUser -Force'
&& pwsh -c 'Install-Module -Name PSScriptAnalyzer -Repository PSGallery -RequiredVersion ${PSSA_VERSION} -Scope CurrentUser -Force' \
&& pwsh -c 'Import-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Force'
#####################
# Run Pip3 Installs #