Skip to content

Commit 112167c

Browse files
committed
ci: update CLI executable permissions and test commands
- Add step to make CLI executable in CI workflow - Update test commands to use the correct runtime file
1 parent 310dfa4 commit 112167c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,14 @@ jobs:
201201
- name: 🛠️ Build project
202202
run: bun run build
203203

204+
- name: 🔧 Make CLI executable
205+
run: chmod +x ./dist/runtime.js
206+
204207
- name: 🧪 Test CLI functionality
205208
run: |
206209
# Test basic functionality
207-
./dist/index.js --help
208-
./dist/index.js --version
210+
./dist/runtime.js --help
211+
./dist/runtime.js --version
209212
210213
# Create test environment
211214
mkdir -p test-env/node_modules/example-package/docs
@@ -214,8 +217,8 @@ jobs:
214217
215218
# Test pruning
216219
cd test-env
217-
../dist/index.js --dry-run
218-
../dist/index.js
220+
../dist/runtime.js --dry-run
221+
../dist/runtime.js
219222
220223
performance:
221224
name: ⚡ Performance Benchmarks
@@ -238,6 +241,9 @@ jobs:
238241
- name: 🛠️ Build project
239242
run: bun run build
240243

244+
- name: 🔧 Make CLI executable
245+
run: chmod +x ./dist/runtime.js
246+
241247
- name: 📊 Run benchmarks
242248
run: |
243249
# Create large test environment
@@ -253,8 +259,8 @@ jobs:
253259
254260
echo "📊 Benchmarking prune-mod performance..."
255261
cd benchmark-env
256-
time ../dist/index.js --dry-run
257-
time ../dist/index.js
262+
time ../dist/runtime.js --dry-run
263+
time ../dist/runtime.js
258264
259265
release:
260266
name: 🚀 Release

0 commit comments

Comments
 (0)