feat(ci): add npx smoke test to verify installability (#17927)

This commit is contained in:
Bryan Morgan 2026-01-30 11:09:59 -05:00 committed by GitHub
parent 95b7d69d5b
commit 94f4e027f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()'