Skip to content

Commit ef86f88

Browse files
committed
sdgdgf
1 parent 0118f86 commit ef86f88

File tree

2 files changed

+30
-32
lines changed

2 files changed

+30
-32
lines changed

.github/workflows/int.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
{
2929
"slack": {
3030
"enabled": true,
31-
"action": "results"
31+
"action": "results"
3232
},
3333
"teams": {
3434
"enabled": true,
@@ -53,7 +53,7 @@ jobs:
5353
{
5454
"slack": {
5555
"enabled": true,
56-
"action": "results",
56+
"action": "results", # One of: "results" | "ai" | "failed" | "flaky"
5757
"options": {
5858
"title": "Test Results",
5959
"prefix": "Custom prefix",
@@ -75,7 +75,7 @@ jobs:
7575
{
7676
"teams": {
7777
"enabled": true,
78-
"action": "results",
78+
"action": "results", # One of: "results" | "flaky" | "ai"
7979
"options": {
8080
"title": "Test Results",
8181
"onFailOnly": false
@@ -93,7 +93,7 @@ jobs:
9393
{
9494
"ai": {
9595
"enabled": true,
96-
"action": "openai",
96+
"action": "openai", # One of: "openai" | "claude" | "azure-openai" | "grok" | "deepseek" | "mistral" | "gemini" | "perplexity" | "openrouter"
9797
"options": {
9898
"model": "gpt-4",
9999
"systemPrompt": "Custom system prompt",

docs/integrations.md

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,45 @@ GitHub Test Reporter supports various integrations to enhance your test reportin
44

55
You can use multiple integrations in the same workflow.
66

7-
Integrations are currently beta. Please report any issues to the [GitHub Test Reporter repository](https://github.com/ctrf-io/github-test-reporter/issues).
7+
Integrations are currently in beta. Please report any issues to the [GitHub Test Reporter repository](https://github.com/ctrf-io/github-test-reporter/issues).
88

99
| Integration | Description | Repository |
1010
|------------|-------------|------------|
1111
| Slack Test Reporter | Send test results and notifications to Slack channels | [ctrf-io/slack-test-reporter](https://github.com/ctrf-io/slack-test-reporter) |
1212
| Microsoft Teams Test Reporter | Post test results and alerts to Teams channels | [ctrf-io/teams-test-reporter](https://github.com/ctrf-io/teams-test-reporter) |
1313
| AI Test Reporter | Intelligent test analysis using leading AI models | [ctrf-io/ai-test-reporter](https://github.com/ctrf-io/ai-test-reporter) |
1414

15-
For detailed information about configuring and using these integrations, see our [Integrations Documentation](docs/integrations.md).
16-
1715
To suggest a new integration, please open an issue on the [GitHub Test Reporter repository](https://github.com/ctrf-io/github-test-reporter/issues).
1816

1917
## Configuration
2018

2119
Integrations are configured using the `integrations-config` input in your GitHub Actions workflow. The configuration is passed as a JSON string:
2220

2321
```yaml
24-
- name: Publish Test Report
25-
uses: ./
26-
with:
27-
report-path: './ctrf/*.json'
28-
integrations-config: |
29-
{
30-
"slack": {
31-
"enabled": true,
32-
"action": "results"
33-
},
34-
"teams": {
35-
"enabled": true,
36-
"action": "results"
37-
},
38-
"ai": {
39-
"enabled": true,
40-
"action": "openai"
41-
}
42-
}
43-
env:
44-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
45-
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}
46-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
47-
if: always()
22+
- name: Publish Test Report
23+
uses: ctrf-io/github-test-reporter@v1
24+
with:
25+
report-path: './ctrf/*.json'
26+
integrations-config: |
27+
{
28+
"slack": {
29+
"enabled": true,
30+
"action": "results"
31+
},
32+
"teams": {
33+
"enabled": true,
34+
"action": "results"
35+
},
36+
"ai": {
37+
"enabled": true,
38+
"action": "openai"
39+
}
40+
}
41+
env:
42+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
43+
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}
44+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
45+
if: always()
4846
```
4947
5048
## Available Integrations
@@ -66,7 +64,7 @@ Requires the `SLACK_WEBHOOK_URL` environment variable to be set.
6664
{
6765
"slack": {
6866
"enabled": true,
69-
"action": "results", # One of: "results" | "ai" | "failed" | "flaky"
67+
"action": "results",
7068
"options": {
7169
"title": "Test Results",
7270
"prefix": "Custom prefix",

0 commit comments

Comments
 (0)