fix spaces #2994
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
# Purpose: Run smoke tests | |
name: Smoke Test | |
on: | |
workflow_call: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, reopened] | |
branches: | |
- "main" | |
pull_request_review: | |
types: [submitted] | |
push: | |
paths: | |
- ".github/workflows/run_smoke_test.yaml" | |
- "utils/Invoke-SmokeTests.ps1" | |
branches: | |
- "main" | |
- "*smoke*" | |
permissions: read-all | |
jobs: | |
smoke-tests: | |
name: Smoke Tests | |
runs-on: windows-latest | |
env: | |
SCUBA_GITHUB_AUTOMATION_CREDS: ${{ secrets.SCUBA_GITHUB_AUTOMATION_CREDS }} | |
# This condition prevents duplicate runs. | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
defaults: | |
run: | |
shell: powershell | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repo code | |
uses: actions/checkout@v4 | |
- name: Execute ScubaGear and Check Outputs | |
run: | | |
$AutomationCredentials = $env:SCUBA_GITHUB_AUTOMATION_CREDS | ConvertFrom-Json | |
$TestTenants = $AutomationCredentials.TestTenants | |
Write-Output "The length of tenants" | |
Write-Output $TestTenants.Length | |
. utils/workflow/Invoke-SmokeTests.ps1 | |
Invoke-SmokeTests -TestTenants $TestTenants |