-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (38 loc) · 1.21 KB
/
qodo-cover-java.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
name: Run the qodo-cover action (Java)
on:
workflow_dispatch:
inputs:
desired_coverage:
description: "Desired coverage percentage"
required: false
default: "70"
permissions:
pull-requests: write
contents: write
jobs:
run-qodo-cover-java:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Qodo Cover
uses: qodo-ai/qodo-ci/.github/actions/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_language: java
project_root: templated_tests/java/JokeFunction
code_coverage_report_path: templated_tests/java/JokeFunction/build/reports/jacoco/test/jacocoTestReport.xml
coverage_type: jacoco
test_command: "./gradlew clean test jacocoTestReport"
model: gpt-4o
desired_coverage: ${{ github.event.inputs.desired_coverage }}
branch: ${{ github.ref_name }}
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}