Skip to content

Commit

Permalink
don't install packages when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Jan 23, 2025
1 parent 0c986d4 commit cf20db0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1,545 deletions.
2 changes: 1 addition & 1 deletion gdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ export class GDF {
modules.push('@flydotio/litestream')
}

if (modules.length === 0) return
if (modules.length === 0 || process.env.NODE_ENV == 'test') return

Check failure on line 648 in gdf.js

View workflow job for this annotation

GitHub Actions / test

Expected '===' and instead saw '=='

Check failure on line 648 in gdf.js

View workflow job for this annotation

GitHub Actions / test

Expected '===' and instead saw '=='
const add = this.packager === 'npm' ? 'install' : 'add'
for (const module of modules) {
execSync(`${this.packager} ${add} ${module}`, { stdio: 'inherit' })
Expand Down
Loading

0 comments on commit cf20db0

Please sign in to comment.