Skip to content

Commit

Permalink
try with rake routes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmou committed Sep 23, 2024
1 parent 562a421 commit 20016ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@ jobs:
env:
TEST_RETRY_COUNT: 5
run: |
docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake "parallel:test[3]"
docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake parallel:spec
docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake routes
echo 'ran routes'
docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake "parallel:test"
echo 'ran parallel:test not 3'
# docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake parallel:spec
echo 'ran parallel:spec'

- name: After PR Tests
id: after-tests
Expand Down
2 changes: 1 addition & 1 deletion bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if [ "${APP}" = 'pender' ] ; then
port ${SERVER_PORT}
EOF

if [ "${DEPLOY_ENV}" = 'local' ] ; then
if [ "${DEPLOY_ENV}" = 'local' || "${DEPLOY_ENV}" = 'test' ] ; then
rm -f "${DIRPATH}/pids/server-${DEPLOY_ENV}.pid"
bundle exec puma -C "${PUMA}"
else # qa, live etc
Expand Down
2 changes: 1 addition & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
options
end
config.lograge.formatter = Lograge::Formatters::Json.new
config.log_level = :debug
config.log_level = :warn
config.paths['log'] = "/var/log/#{ENV['DEPLOY_ENV']}.log"
config.paths['tmp'] = "/tmp"
config.paths['db'] = "/opt/db"
Expand Down

0 comments on commit 20016ae

Please sign in to comment.