Skip to content

Commit

Permalink
Fix seed envvar export for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ar committed Dec 13, 2023
1 parent 075a966 commit ed017e1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/composedb/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean clean-test start-test-env kill-test-env
.PHONY: generate clean clean-test start-test-env kill-test-env

generate:
npm run generate
Expand All @@ -19,7 +19,7 @@ start-test-env: clean-test generate
npx ceramic daemon --config test.config.json &>/dev/null &
sleep 5

npm run deployComposites
export ADMIN_SEED=$$(<admin_seed.txt) && npm run deployComposites

kill-test-env:
npm run kill
2 changes: 1 addition & 1 deletion packages/composedb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"generate": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/generate.ts",
"dev": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/run.ts",
"deployComposites": "ADMIN_SEED=$(<admin_seed.txt) node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/composites.ts",
"deployComposites": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/composites.ts",
"ceramic": "ceramic daemon --config composedb.config.json",
"kill": "pkill --full \"ceramic daemon|ipfs daemon\""
},
Expand Down
2 changes: 1 addition & 1 deletion packages/composedb/src/__generated__/definition.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/composedb/src/__generated__/definition.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "rm -rf ./dist && tsc --project tsconfig.build.json",
"populate": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/populate.ts",
"test": "ADMIN_SEED=$(<../composedb/admin_seed.txt) vitest --run --config vitest.config.ts"
"test": "export ADMIN_SEED=$(<../composedb/admin_seed.txt) && vitest --run --config vitest.config.ts"
},
"devDependencies": {
"ts-node": "^10.9.1",
Expand Down

0 comments on commit ed017e1

Please sign in to comment.