-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (52 loc) · 2.26 KB
/
CI.yml
File metadata and controls
58 lines (52 loc) · 2.26 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
50
51
52
53
54
55
56
57
58
name: CI
on:
pull_request:
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: Testing on PR
run: ./launcher igorRunTests --config-file "C:\GM-TestFramework\configs\config_ci.json" --feed '${{ secrets.RSS_FEED_RED }}' ${{ github.event.inputs.EXTRA_PARAMS }} --gmpm-registry '${{ secrets.GMPM_REGISTRY }}' --gmpm-username '${{ secrets.GMPM_USERNAME }}' --gmpm-password '${{ secrets.GMPM_PASSWORD }}'
working-directory: GM-TF
shell: pwsh
continue-on-error: false
- name: Upload Results Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: summary_file
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
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: Retrieve Artifact Download URL for TF Output File
run: python .\get_output_file_url.py --github-token ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} --workflow ${{ github.workflow }}.yml
working-directory: GM-TF
Slack-Notification:
name: "Slack Notification"
runs-on: ubuntu-latest
needs: [CI]
steps:
- name: Slack Notification on Failure
if: (failure() || contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'stopped'))
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: gm-test-automation
SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff'
SLACK_ICON: https://github.com/pink.png?size=48
SLACK_MESSAGE: '${{ github.workflow }}-Build Failed'
SLACK_TITLE: GM-Tesframework Build Failed
SLACK_USERNAME: suchitra
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}