perf(invokeazurerequest): ⚡ removed string concatenation #9
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: test | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install PowerShell dependencies | |
shell: pwsh | |
run: | | |
Set-PSRepository PSGallery -InstallationPolicy Trusted | |
Install-Module platyps, PSScriptAnalyzer -force | |
- name: Run PSScriptAnalyzer | |
shell: pwsh | |
run: | | |
Invoke-ScriptAnalyzer -Path .\ -Settings PSGallery -Recurse -ReportSummary -Severity Error | |
- name: Run Tests | |
shell: pwsh | |
run: | | |
Install-Module Az.Accounts, Az.Resources -Force | |
$config = New-PesterConfiguration -Hashtable @{TestResult = @{Enabled = $true }; Run = @{Exit = $true }; CodeCoverage = @{Enabled = $true } } | |
Invoke-Pester -Configuration $config | |
- name: Upload test results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Pester-Tests | |
path: testResults.xml | |
- name: Upload code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Pester-Tests | |
path: coverage.xml |