Skip to content

Commit d6efe9d

Browse files
committed
ci: add explicit e2e tests step to PR validation
Split test run into unit tests and e2e tests for better visibility and clearer CI output.
1 parent e249419 commit d6efe9d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/actions/validate-sdk/action.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,14 @@ runs:
4747
working-directory: examples/nextjs-example
4848
run: npx tsc --noEmit
4949

50-
- name: Run tests
50+
- name: Run unit tests
5151
shell: bash
5252
env:
5353
OPENROUTER_API_KEY: ${{ inputs.openrouter-api-key }}
54-
run: npx vitest --run
54+
run: npx vitest --run --exclude 'tests/e2e/**'
55+
56+
- name: Run e2e tests
57+
shell: bash
58+
env:
59+
OPENROUTER_API_KEY: ${{ inputs.openrouter-api-key }}
60+
run: npx vitest --run tests/e2e/

0 commit comments

Comments
 (0)