forked from oracle/weblogic-azure
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.33 KB
/
it-validation-aks.yaml
File metadata and controls
46 lines (42 loc) · 1.33 KB
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
46
name: IT Validation for AKS
run-name: Running validation workflows with plan:${{ github.event_name == 'schedule' && 'plan-aks' || inputs.it_plan }}
on:
schedule:
- cron: '0 6 * * 1' # Every Monday at 06:00 UTC
workflow_dispatch:
inputs:
it_plan:
description: 'Path to the validation plan file'
required: true
type: choice
options:
- plan-aks
default: plan-aks
jobs:
execute-validation:
runs-on: ubuntu-latest
outputs:
results: ${{ steps.it-validation.outputs.results }}
report_url: ${{ steps.it-validation.outputs.report_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set validation plan file
id: set-plan-file
run: |
case "${{ inputs.it_plan || 'plan-aks' }}" in
plan-aks)
IT_FILE=".github/it/validation-plan-aks.json"
;;
*)
echo "Unknown plan option: ${{ inputs.it_plan }}"
exit 1
;;
esac
echo "it_file=$IT_FILE" >> $GITHUB_OUTPUT
- name: Execute IT Validation
id: it-validation
uses: ./.github/actions/it
with:
it_file: ${{ steps.set-plan-file.outputs.it_file }}
github_token: ${{ secrets.GITHUB_TOKEN }}