Skip to content

Accept SHA-pinned action refs in update-mslearn-dates workflow tests #826

Accept SHA-pinned action refs in update-mslearn-dates workflow tests

Accept SHA-pinned action refs in update-mslearn-dates workflow tests #826

Workflow file for this run

name: 'PowerShell Tests'
on:
pull_request:
paths:
- 'src/powershell/**'
# KQL sources are covered by unit tests (HubsKqlOperators.Tests.ps1)
- 'src/templates/finops-hub/**/*.kql'
- 'src/queries/**/*.kql'
# ADF trigger time zone mappings are covered by unit tests (HubsAdfTriggerTimeZones.Tests.ps1)
- 'src/templates/finops-hub/**/timeZones.bicep'
- 'docs/deploy/finops-hub-latest.json'
- 'docs/deploy/finops-hub-preview.json'
jobs:
run_pester_tests:
name: Pester
runs-on: Windows-latest
steps:
- name: Install and cache PowerShell modules
uses: potatoqualitee/psmodulecache@ee5e9494714abf56f6efbfa51527b2aec5c761b8 # v6.2.1
with:
modules-to-cache: InvokeBuild, PSScriptAnalyzer, Pester:6.0.0, Az.Accounts, Az.Resources
shell: pwsh
- uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0
- name: Run Tests
shell: pwsh
run: .build/start.ps1 -Task Test.PowerShell.All