feat(hubs): add Azure Resource Manager ingestion #899
This file contains hidden or 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: 'Development 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' | |
| - '.github/extensions/ftk-local-dashboard/**' | |
| - 'package.json' | |
| permissions: | |
| contents: read | |
| 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Run Tests | |
| shell: pwsh | |
| run: .build/start.ps1 -Task Test.PowerShell.All | |
| run_dashboard_tests: | |
| name: FinOps hub dashboard | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Run dashboard tests | |
| run: npm run test-dashboard |