sdgdgf #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", # One of: "results" | "ai" | "failed" | "flaky" | |
"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", # One of: "results" | "flaky" | "ai" | |
"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", # One of: "openai" | "claude" | "azure-openai" | "grok" | "deepseek" | "mistral" | "gemini" | "perplexity" | "openrouter" | |
"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() |