-
Notifications
You must be signed in to change notification settings - Fork 24
114 lines (112 loc) · 3.14 KB
/
int.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: int
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
schedule:
- cron: '0 2 * * *'
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Build
run: npm run all:action
- name: Publish Test Report
uses: ./
with:
report-path: "./ctrf/*.json"
integrations-config: |
{
"slack": {
"enabled": true,
"action": "results"
},
"teams": {
"enabled": true,
"action": "results"
},
"ai": {
"enabled": true,
"action": "openai"
}
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
if: always()
- name: Publish Test Report
uses: ./
with:
report-path: './ctrf/*.json'
summary: false
integrations-config: |
{
"slack": {
"enabled": true,
"action": "results",
"options": {
"title": "Test Results",
"prefix": "Custom prefix",
"suffix": "Custom suffix",
"consolidated": false,
"onFailOnly": false
}
}
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()
- name: Publish Test Report
uses: ./
with:
report-path: './ctrf/*.json'
summary: false
integrations-config: |
{
"teams": {
"enabled": true,
"action": "results",
"options": {
"title": "Test Results",
"onFailOnly": false
}
}
}
env:
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}
if: always()
- name: Publish Test Report
uses: ./
with:
report-path: './ctrf/*.json'
integrations-config: |
{
"ai": {
"enabled": true,
"action": "openai",
"options": {
"model": "gpt-4",
"systemPrompt": "Custom system prompt",
"frequencyPenalty": 0,
"maxTokens": 1000,
"presencePenalty": 0,
"temperature": 0.7,
"topP": 1,
"log": false,
"maxMessages": 10,
"consolidate": false,
"deploymentId": "your-azure-deployment-id"
}
}
}
env:
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
if: always()