-
Notifications
You must be signed in to change notification settings - Fork 11
69 lines (62 loc) · 2.39 KB
/
Red.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Red
on:
workflow_dispatch:
inputs:
CONFIG_FILE:
description: "CONFIG_FILE"
required: true
RSS_Feed:
description: "RSS_Feed"
required: false
type: string
EXTRA_PARAMS:
description: "EXTRA_PARAMS from config"
required: false
type: string
RUNTIME_VERSION:
description: "Full Runtime Version"
required: true
type: string
jobs:
CI:
name: "CI"
runs-on: Windows
timeout-minutes: 60
steps:
- name: Check out the GM-TestFramework repo
uses: actions/checkout@v4
with:
path: GM-TF
- name: Wait for 10 Minutes
run: Start-Sleep -Seconds 300
shell: pwsh
- name: Testing Manually with passing RSS_Feed for Red builds
run: ./launcher igorRunTests --config-file "C:\GM-TestFramework\configs\${{ github.event.inputs.CONFIG_FILE }}" --feed '${{ secrets.RSS_FEED_RED }}' ${{ github.event.inputs.EXTRA_PARAMS }}
working-directory: GM-TF
shell: pwsh
- name: Upload Results Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: summary_file-${{ github.event.inputs.RUNTIME_VERSION }}
path: ${{ github.workspace }}\GM-TF\results
- name: Running TF Compare Script
run: python .\tf_compare.py --github-token ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} --workflow ${{ github.workflow }}.yml --rt ${{ github.event.inputs.RUNTIME_VERSION }}
working-directory: GM-TF
- name: Upload TF Compare Output
if: always()
uses: actions/upload-artifact@v4
with:
name: tf_compare_output_file
path: ${{ github.workspace }}\GM-TF\TF_Output.txt
- name: Notify Slack (if runners restarted)
if: always()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: gmtestframework-pipeline
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://github.com/black.png?size=48
SLACK_MESSAGE: ${{ github.run_number}} Testframework Build with Runtime version ${{ github.event.inputs.RUNTIME_VERSION }} is ${{ job.status }}
SLACK_TITLE: GM-Tesframework Red Build
SLACK_USERNAME: ${{ github.actor }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}