-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (45 loc) · 1.49 KB
/
it-validation-workflows.yaml
File metadata and controls
49 lines (45 loc) · 1.49 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
47
48
49
# Copyright (c) IBM Corporation.
# Copyright (c) Microsoft Corporation.
name: IT Validation for Liberty ARO
run-name: Running validation workflows for liberty-aro
on:
schedule:
- cron: '0 4 * * 1' # Every Monday at 04:00 UTC
workflow_dispatch:
inputs:
it_plan:
description: 'Path to the validation plan file'
required: true
type: choice
options:
- integration-test
default: integration-test
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
# in case of multiple validation plans in the .github/it directory, this step can be modified to select the appropriate plan
- name: Set validation plan file
id: set-plan-file
run: |
case "${{ inputs.it_plan || 'integration-test' }}" in
integration-test)
IT_FILE=".github/it/validation-plan.json"
;;
*)
echo "Unknown plan option: ${{ inputs.it_plan }}"
exit 1
;;
esac
echo "it_file=$IT_FILE" >> $GITHUB_OUTPUT
- name: Execute CI Validation
id: it-validation
uses: ./.github/actions/it
with:
it_file: ${{ steps.set-plan-file.outputs.it_file }}
github_token: ${{ secrets.GITHUB_TOKEN }}