Skip to content

Commit 88ba90a

Browse files
committed
hjgjh
1 parent 5157d20 commit 88ba90a

File tree

5 files changed

+27
-27
lines changed

5 files changed

+27
-27
lines changed

.github/workflows/int.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ jobs:
4141
}
4242
env:
4343
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
44+
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}
4445
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
4546
if: always()

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/integrations.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,30 @@ To suggest a new integration, please open an issue on the [GitHub Test Reporter
2121
Integrations are configured using the `integrations-config` input in your GitHub Actions workflow. The configuration is passed as a JSON string:
2222

2323
```yaml
24-
- name: Publish Test Report
25-
uses: ctrf-io/github-test-reporter@v1
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_TOKEN: ${{ secrets.OPENAI_TOKEN }}
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()
4748
```
4849
4950
## Available Integrations

src/core/action-handler.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ export async function runAction(): Promise<void> {
1212
const githubContext = getAllGitHubContext()
1313

1414
const report = await prepareReport(inputs, githubContext)
15-
console.log('report')
16-
console.log(JSON.stringify(report, null, 2))
1715
await processIntegrations(inputs.integrationsConfig, report)
1816
console.log('report processed')
1917

0 commit comments

Comments
 (0)