Skip to content

Commit a556499

Browse files
ochafikclaude
andcommitted
ci: add test for git-based npm install (cross-platform)
This verifies that `npm install git+https://...` works on all platforms, which triggers the prepare script and requires bun to be available. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a0b405a commit a556499

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,39 @@ jobs:
5757
- run: npm test
5858

5959
- run: npm run prettier
60+
61+
# Test that the package can be installed from git (triggers prepare script)
62+
test-git-install:
63+
strategy:
64+
fail-fast: false
65+
matrix:
66+
include:
67+
- os: ubuntu-latest
68+
name: Linux x64
69+
- os: windows-latest
70+
name: Windows x64
71+
- os: macos-latest
72+
name: macOS ARM64
73+
74+
name: Test git install (${{ matrix.name }})
75+
runs-on: ${{ matrix.os }}
76+
77+
steps:
78+
- uses: oven-sh/setup-bun@v2
79+
with:
80+
bun-version: latest
81+
82+
- uses: actions/setup-node@v4
83+
with:
84+
node-version: "20"
85+
86+
- name: Create test project and install from git
87+
shell: bash
88+
run: |
89+
mkdir test-project
90+
cd test-project
91+
npm init -y
92+
# Install from the PR branch
93+
npm install "git+https://github.com/${{ github.repository }}#${{ github.head_ref || github.ref_name }}"
94+
# Verify the package is usable (ESM import)
95+
node --input-type=module -e "import { App } from '@modelcontextprotocol/ext-apps'; console.log('Import successful:', typeof App)"

0 commit comments

Comments
 (0)