-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (40 loc) · 1.31 KB
/
qodo-cover-go.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
name: Run the qodo-cover action (Go)
on:
workflow_dispatch:
inputs:
desired_coverage:
description: "Desired coverage percentage"
required: false
default: "70"
permissions:
pull-requests: write
contents: write
jobs:
run-qodo-cover-go:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Install dependencies
run: |
go install github.com/boumenot/gocover-cobertura@latest
- name: Qodo Cover
uses: qodo-ai/qodo-ci/.github/actions/qodo-cover@v0.1.15
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_language: go
project_root: templated_tests/go/taskmgr
code_coverage_report_path: templated_tests/go/taskmgr/coverage.xml
test_command: "go test ./... -coverprofile=coverage.out && gocover-cobertura < coverage.out > coverage.xml"
model: gpt-4o-2024-11-20
desired_coverage: ${{ github.event.inputs.desired_coverage }}
run_each_test_separately: "false"
branch: ${{ github.ref_name }}
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}