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

This commit is contained in:
Bryan Morgan
2026-01-29 21:03:05 -05:00
parent ffec5fecb6
commit 76a5f56990

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