mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-02-01 22:48:03 +00:00
feat(ci): add npx smoke test to verify installability
This commit is contained in:
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@@ -177,6 +177,15 @@ jobs:
|
||||
- name: 'Smoke test bundle'
|
||||
run: 'node ./bundle/gemini.js --version'
|
||||
|
||||
- name: 'Smoke test npx installation'
|
||||
run: |
|
||||
# Create a temporary directory to avoid picking up local node_modules
|
||||
mkdir -p ../npx-test
|
||||
cd ../npx-test
|
||||
# Run npx pointing to the checkout directory. This simulates a user
|
||||
# installing the package from a git reference.
|
||||
npx ${{ github.workspace }} --version
|
||||
|
||||
- name: 'Wait for file system sync'
|
||||
run: 'sleep 2'
|
||||
|
||||
@@ -252,6 +261,15 @@ jobs:
|
||||
- name: 'Smoke test bundle'
|
||||
run: 'node ./bundle/gemini.js --version'
|
||||
|
||||
- name: 'Smoke test npx installation'
|
||||
run: |
|
||||
# Create a temporary directory to avoid picking up local node_modules
|
||||
mkdir -p ../npx-test
|
||||
cd ../npx-test
|
||||
# Run npx pointing to the checkout directory. This simulates a user
|
||||
# installing the package from a git reference.
|
||||
npx ${{ github.workspace }} --version
|
||||
|
||||
- name: 'Wait for file system sync'
|
||||
run: 'sleep 2'
|
||||
|
||||
@@ -396,6 +414,16 @@ jobs:
|
||||
run: 'node ./bundle/gemini.js --version'
|
||||
shell: 'pwsh'
|
||||
|
||||
- name: 'Smoke test npx installation'
|
||||
run: |
|
||||
# Create a temporary directory to avoid picking up local node_modules
|
||||
New-Item -ItemType Directory -Force -Path ../npx-test
|
||||
Set-Location ../npx-test
|
||||
# Run npx pointing to the checkout directory. This simulates a user
|
||||
# installing the package from a git reference.
|
||||
npx ${{ github.workspace }} --version
|
||||
shell: 'pwsh'
|
||||
|
||||
ci:
|
||||
name: 'CI'
|
||||
if: 'always()'
|
||||
|
||||
Reference in New Issue
Block a user