Skip to content

ertrte

ertrte #19

Workflow file for this run

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()