Skip to content

Commit

Permalink
fix: docker shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Feb 3, 2024
1 parent 672ed83 commit 85b08b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ ENV CLOUDWATCH_LOG_BASE_URL=${CLOUDWATCH_LOG_BASE_URL}
ENV DISCORD_WEBHOOK_URL_TEST_FAILURES=${DISCORD_WEBHOOK_URL_TEST_FAILURES}
ENV DISCORD_WEBHOOK_URL_TEST_RESULTS=${DISCORD_WEBHOOK_URL_TEST_RESULTS}

CMD [ "./ci.sh" ]
ENTRYPOINT [ "./ci.sh" ]
4 changes: 3 additions & 1 deletion ci/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ fi

echo "INFO: Sleeping for ${SLEEP}s"
sleep ${SLEEP} # Give time for services to finish starting up before starting tests
npm run test
npm run test:ci

exec "$@"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"format": "./node_modules/.bin/prettier --write 'src/**/*{.ts,.tsx,.js}' && ./node_modules/.bin/prettier --write 'ci/*{.ts,.tsx,.js}'",
"lint": "./node_modules/.bin/eslint --fix ./src --ext .js,.jsx,.ts,.tsx",
"prebuild": "npm run clean",
"test": "node --experimental-vm-modules ./node_modules/.bin/jest --config jest.config.json --runInBand --verbose --forceExit",
"test": "node --experimental-vm-modules ./node_modules/.bin/jest --config jest.config.json --runInBand --verbose",
"test:ci": "node --experimental-vm-modules ./node_modules/.bin/jest --config jest.config.ci.json --runInBand --verbose --forceExit",
"clean": "rm -rf ./build"
},
"dependencies": {
Expand Down

0 comments on commit 85b08b2

Please sign in to comment.