Skip to content

Commit 4cf907a

Browse files
authored
fix(ci): add submodules checkout to coverage job (#85)
The coverage job was failing because the stackone-ai-node submodule was not being checked out. The MCP mock server tests require this submodule to be present for bun install to succeed. Changes: - Add submodules: true to coverage job checkout step (matching ci job) - Add automatic submodule initialisation in flake.nix shellHook This ensures submodules are available both in CI and local development.
1 parent 7547d71 commit 4cf907a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ jobs:
7373
steps:
7474
- name: Checkout repository
7575
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
76+
with:
77+
submodules: true
7678

7779
- name: Setup Nix
7880
uses: ./.github/actions/setup-nix

flake.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@
108108
shellHook = ''
109109
echo "StackOne AI Python SDK development environment"
110110
111+
# Initialize git submodules if not already done
112+
if [ -f .gitmodules ] && [ ! -f vendor/stackone-ai-node/package.json ]; then
113+
echo "📦 Initializing git submodules..."
114+
git submodule update --init --recursive
115+
fi
116+
111117
# Install Python dependencies only if .venv is missing or uv.lock is newer
112118
if [ ! -d .venv ] || [ uv.lock -nt .venv ]; then
113119
echo "📦 Installing Python dependencies..."

0 commit comments

Comments
 (0)