-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.17 KB
/
Copy pathci.yml
File metadata and controls
47 lines (43 loc) · 1.17 KB
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
47
name: CI
on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Typecheck, test, and compile
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.3
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Typecheck
run: bun run typecheck
- name: Unit tests
run: bun run test:unit
- name: Integration tests with dummy Codex CLI
run: bun run test:integration
- name: Check version consistency
run: bun run version:check
- name: Compile Linux x64 binary
run: bun run build --target=linux-x64
- name: Verify executable
run: ./dist/codex-proxy-linux-x64 --version
- name: Upload binary
uses: actions/upload-artifact@v7
with:
name: codex-proxy-linux-x64
path: dist/codex-proxy-linux-x64
if-no-files-found: error
retention-days: 7