-
Notifications
You must be signed in to change notification settings - Fork 197
43 lines (33 loc) · 900 Bytes
/
pr.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: Code Review GPT CI
on:
pull_request:
branches: [main]
permissions:
pull-requests: write
contents: read
actions: read
jobs:
build_and_test:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_SHA: ${{ github.sha }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun i
- name: Lint check
run: bun check
- name: Run tests
run: bun test
- name: Run code review script
run: bun review --ci=github --model=gpt-4o-mini --debug
- name: Run prompt tests
run: bun test:llm --ci=github --model=gpt-4o-mini