Skip to content

Commit 0bbbaf4

Browse files
committed
Run e2e tests as separate workflow
1 parent b67038f commit 0bbbaf4

2 files changed

Lines changed: 30 additions & 32 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,21 @@ on:
77
branches: [main]
88

99
jobs:
10-
typecheck:
10+
ci:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v6
1515
with:
1616
node-version: '24'
17-
- run: npm ci
18-
- run: npm run typecheck
19-
20-
test:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v4
24-
- uses: actions/setup-node@v6
25-
with:
26-
node-version: '24'
27-
- run: npm ci
28-
- run: npm test
29-
- name: Run e2e tests
30-
env:
31-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
32-
run:
33-
npm run test:e2e
34-
35-
build:
36-
runs-on: ubuntu-latest
37-
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions/setup-node@v6
40-
with:
41-
node-version: '24'
42-
- run: npm ci
4317
- uses: oven-sh/setup-bun@v2
4418
with:
4519
bun-version: 1.3.11
46-
- run: npm run bundle:all
47-
- uses: actions/upload-artifact@v4
48-
with:
49-
name: binaries
50-
path: dist/bin/
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Typecheck
23+
run: npm run typecheck
24+
- name: Run unit tests
25+
run: npm test
26+
- name: Bundle binaries
27+
run: npm run bundle:all

.github/workflows/e2e.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: E2E tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
e2e:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v6
14+
with:
15+
node-version: '24'
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Run e2e tests
19+
env:
20+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
21+
run: npm run test:e2e

0 commit comments

Comments
 (0)