test: 전체 테스트 커버리지 대폭 개선 (243 → 386) #21
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR AI Description | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| concurrency: | |
| group: pr-ai-description-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| pr-ai-description: | |
| if: false # 임시 비활성화 — 원래 조건: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup Node.js (24.x) | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24.x' | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Run PR AI helper unit tests | |
| run: node --test .github/scripts/__tests__/*.spec.mjs | |
| - name: Generate AI PR description | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| OPENAI_MODEL: ${{ vars.OPENAI_MODEL }} | |
| PR_AI_MAX_DIFF_BYTES: ${{ vars.PR_AI_MAX_DIFF_BYTES }} | |
| PR_AI_MAX_FILES: ${{ vars.PR_AI_MAX_FILES }} | |
| LANGSMITH_TRACING: ${{ vars.LANGSMITH_TRACING }} | |
| LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }} | |
| LANGSMITH_ENDPOINT: ${{ vars.LANGSMITH_ENDPOINT }} | |
| LANGSMITH_PROJECT: ${{ vars.LANGSMITH_PROJECT }} | |
| LANGSMITH_WORKSPACE_ID: ${{ vars.LANGSMITH_WORKSPACE_ID }} | |
| run: node .github/scripts/pr-ai-description.mjs |