-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (50 loc) · 1.71 KB
/
CI.yml
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
50
51
52
53
54
name: CI
on:
pull_request:
workflow_dispatch:
inputs:
CONFIG_FILE:
description: "CONFIG_FILE"
required: true
RSS_Feed:
description: "RSS_Feed"
required: true
jobs:
CI:
name: "CI"
runs-on: Windows
steps:
- name: Check out the GM-TestFramework repo
uses: actions/checkout@v3
with:
path: GM-TF
- run: .\setup.bat
working-directory: GM-TF
shell: cmd
- name: Running Manually
if: github.event.inputs.RSS_Feed == ''
run: python framework_launcher.py -cf ${{ secrets.CONFIG_FOLDER }}\${{ github.event.inputs.CONFIG_FILE }} -f ${{ github.event.inputs.RSS_Feed }}
working-directory: GM-TF
continue-on-error: true
- name: Running Manually without passing Feed
if: github.event_name == 'workflow_dispatch'
run: python framework_launcher.py -cf ${{ secrets.CONFIG_FOLDER }}\${{ github.event.inputs.CONFIG_FILE }}
working-directory: GM-TF
continue-on-error: true
- name: Running on PR
if: github.event_name == 'pull_request'
run: python framework_launcher.py -cf ${{ secrets.CONFIG_FOLDER }}\config_ci.json
working-directory: GM-TF
continue-on-error: true
- name: Upload tests Artifacts
uses: actions/upload-artifact@v3
with:
name: test_results
path: .\GM-TF\workspace\results\tests\
continue-on-error: true
- name: Upload summary Artifacts
uses: actions/upload-artifact@v3
with:
name: summary_file
path: .\GM-TF\workspace\summary.json
continue-on-error: true