-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (44 loc) · 1.44 KB
/
qodo-cover-typescript.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Run the qodo-cover action (Typescript)
on:
workflow_dispatch:
inputs:
desired_coverage:
description: "Desired coverage percentage"
required: false
default: "70"
permissions:
pull-requests: write
contents: write
jobs:
run-qodo-cover-ts:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: templated_tests/typescript/calculator
- name: Install dependencies
run: |
npm install
working-directory: templated_tests/typescript/calculator
- name: Qodo Cover
uses: qodo-ai/qodo-ci/.github/actions/qodo-cover@v0.1.15
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_language: typescript
project_root: templated_tests/typescript/calculator
code_coverage_report_path: templated_tests/typescript/calculator/coverage/cobertura-coverage.xml
test_command: "npm run test -- tests/**/*.test.ts"
model: gpt-4o-2024-11-20
desired_coverage: ${{ github.event.inputs.desired_coverage }}
test_folder: tests
source_folder: src
branch: ${{ github.ref_name }}
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}