Skip to content

[chore] LLM 컨텍스트 캐싱 효과 측정 (cached_tokens 기록) #116

[chore] LLM 컨텍스트 캐싱 효과 측정 (cached_tokens 기록)

[chore] LLM 컨텍스트 캐싱 효과 측정 (cached_tokens 기록) #116

Workflow file for this run

name: CI
on:
pull_request:
branches: [dev, prod]
# dev·prod push 시에는 Build & Deploy 가 이 워크플로를 호출한다.
# 여기에 push 트리거를 두면 테스트가 두 번 돌고, 무엇보다 배포와 병렬로 돌아서
# 테스트가 깨져도 배포를 막지 못한다.
workflow_call:
concurrency:
# 같은 PR에 새 push가 오면 진행 중이던 이전 CI를 취소.
# 그룹명에 github.workflow 를 쓰면 호출된 경우 caller 의 워크플로명이 잡혀
# caller 와 그룹이 겹치므로, 고정 접두사를 쓴다.
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
checks: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "21"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Lint (ktlint)
run: ./gradlew ktlintCheck
- name: Test & Coverage
run: ./gradlew build jacocoTestReport
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: build/test-results/test/*.xml
check_name: "Test Results"
- name: Report Coverage
if: github.event_name == 'pull_request'
continue-on-error: true
uses: madrapps/jacoco-report@v1.8.0
with:
paths: build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: "Test Coverage"
update-comment: true
min-coverage-overall: 0
min-coverage-changed-files: 0