mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-03 06:37:46 -07:00
feat(ci): refine trial to measure both unit speed and bundle integrity
This commit is contained in:
@@ -30,8 +30,24 @@ jobs:
|
|||||||
name: 'gemini-bundle'
|
name: 'gemini-bundle'
|
||||||
path: 'bundle/'
|
path: 'bundle/'
|
||||||
|
|
||||||
|
test_cli_unit:
|
||||||
|
name: 'Test (Linux) - CLI Unit Tests'
|
||||||
|
runs-on: 'gemini-cli-ubuntu-16-core'
|
||||||
|
steps:
|
||||||
|
- name: 'Checkout'
|
||||||
|
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8'
|
||||||
|
|
||||||
|
- name: 'Setup Source'
|
||||||
|
uses: './.github/actions/setup-gemini'
|
||||||
|
with:
|
||||||
|
mode: 'source'
|
||||||
|
|
||||||
|
- name: 'Run CLI Unit Tests'
|
||||||
|
run: 'npx vitest run packages/cli'
|
||||||
|
shell: 'bash'
|
||||||
|
|
||||||
test_with_bundle:
|
test_with_bundle:
|
||||||
name: 'Test (Linux) - Bundled Trial'
|
name: 'Test (Linux) - Bundled Integration'
|
||||||
needs: 'build_bundle'
|
needs: 'build_bundle'
|
||||||
runs-on: 'gemini-cli-ubuntu-16-core'
|
runs-on: 'gemini-cli-ubuntu-16-core'
|
||||||
steps:
|
steps:
|
||||||
@@ -44,6 +60,6 @@ jobs:
|
|||||||
mode: 'bundle'
|
mode: 'bundle'
|
||||||
bundle-artifact: 'gemini-bundle'
|
bundle-artifact: 'gemini-bundle'
|
||||||
|
|
||||||
- name: 'Run CLI Unit Tests'
|
- name: 'Run Integration Tests'
|
||||||
run: 'npx vitest run packages/cli'
|
run: 'npm run test:integration:sandbox:none'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
include: ['**/*.{test,spec}.{js,ts,jsx,tsx}', 'config.test.ts'],
|
include: ['**/*.{test,spec}.{js,ts,jsx,tsx}', 'config.test.ts'],
|
||||||
exclude: ['**/node_modules/**', '**/dist/**', '**/cypress/**'],
|
|
||||||
environment: 'node',
|
environment: 'node',
|
||||||
globals: true,
|
globals: true,
|
||||||
reporters: ['default', 'junit'],
|
reporters: ['default', 'junit'],
|
||||||
@@ -35,6 +34,7 @@ export default defineConfig({
|
|||||||
exclude: [
|
exclude: [
|
||||||
'**/node_modules/**',
|
'**/node_modules/**',
|
||||||
'**/dist/**',
|
'**/dist/**',
|
||||||
|
'**/cypress/**',
|
||||||
'**/src/ui/components/messages/ToolStickyHeaderRegression.test.tsx',
|
'**/src/ui/components/messages/ToolStickyHeaderRegression.test.tsx',
|
||||||
'**/src/ui/components/views/McpStatus.test.tsx',
|
'**/src/ui/components/views/McpStatus.test.tsx',
|
||||||
'**/src/ui/components/messages/SubagentHistoryMessage.test.tsx',
|
'**/src/ui/components/messages/SubagentHistoryMessage.test.tsx',
|
||||||
|
|||||||
Reference in New Issue
Block a user