-
Notifications
You must be signed in to change notification settings - Fork 260
45 lines (41 loc) · 1.36 KB
/
run_smoke_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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/workflow/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
. utils/workflow/Invoke-SmokeTests.ps1
Invoke-SmokeTests -TestTenants $TestTenants