Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
pull_request:
branches: [main]
branches: [main, develop]

jobs:
build:
Expand All @@ -17,13 +17,18 @@ jobs:
with:
node-version: '18.18.2'

- name: pnpm 설치중..
run: npm install -g pnpm

- name: 종속성 설치중...
run: pnpm install
run: npm install
working-directory: ./fe

- name: 빌드 중..
run: pnpm build
run: npm run build
working-directory: ./fe

# - name: 테스트 실행 중..
# run: npm run test
# working-directory: ./fe

# - name: 코드 린트 체크 중..
# run: npm run lint
# working-directory: ./fe
33 changes: 33 additions & 0 deletions .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Code Review

permissions:
contents: read
pull-requests: write

on:
pull_request:
types: [opened, reopened]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# actions/checkout의 최신 버전 사용

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Node.js의 최신 LTS 버전으로 업데이트

- name: Install dependencies
run: npm install
working-directory: ./fe

- name: Run GPT-based Code Review
uses: anc95/ChatGPT-CodeReview@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LANGUAGE: 'TypeScript' # 프로젝트의 언어를 TypeScript로 설정
MAX_COMMENTS: 5 # 리뷰어가 생성할 최대 코멘트 수
Loading