Skip to content

Commit 3fc478a

Browse files
committed
wfsdf
1 parent 88ba90a commit 3fc478a

File tree

1 file changed

+69
-1
lines changed

1 file changed

+69
-1
lines changed

.github/workflows/int.yaml

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,72 @@ jobs:
4343
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
4444
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}
4545
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
46-
if: always()
46+
if: always()
47+
- name: Publish Test Report
48+
uses: ctrf-io/github-test-reporter@v1
49+
with:
50+
report-path: './ctrf/*.json'
51+
summary: false
52+
integrations-config: |
53+
{
54+
"slack": {
55+
"enabled": true,
56+
"action": "results", # One of: "results" | "ai" | "failed" | "flaky"
57+
"options": {
58+
"title": "Test Results",
59+
"prefix": "Custom prefix",
60+
"suffix": "Custom suffix",
61+
"consolidated": false,
62+
"onFailOnly": false
63+
}
64+
}
65+
}
66+
env:
67+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
68+
if: always()
69+
- name: Publish Test Report
70+
uses: ctrf-io/github-test-reporter@v1
71+
with:
72+
report-path: './ctrf/*.json'
73+
summary: false
74+
integrations-config: |
75+
{
76+
"teams": {
77+
"enabled": true,
78+
"action": "results",
79+
"options": {
80+
"title": "Test Results",
81+
"onFailOnly": false
82+
}
83+
}
84+
}
85+
env:
86+
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}
87+
if: always()
88+
- name: Publish Test Report
89+
uses: ctrf-io/github-test-reporter@v1
90+
with:
91+
report-path: './ctrf/*.json'
92+
integrations-config: |
93+
{
94+
"ai": {
95+
"enabled": true,
96+
"action": "openai",
97+
"options": {
98+
"model": "gpt-4",
99+
"systemPrompt": "Custom system prompt",
100+
"frequencyPenalty": 0,
101+
"maxTokens": 1000,
102+
"presencePenalty": 0,
103+
"temperature": 0.7,
104+
"topP": 1,
105+
"log": false,
106+
"maxMessages": 10,
107+
"consolidate": false,
108+
"deploymentId": "your-azure-deployment-id"
109+
}
110+
}
111+
}
112+
env:
113+
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
114+
if: always()

0 commit comments

Comments
 (0)