Skip to content

Commit

Permalink
maybe the last one?
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Dec 20, 2024
1 parent 22b9338 commit 33c26a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: "docker compose build"

- name: Run all tests
run: docker compose run app -- ./ci.sh
run: "docker compose run app -- ./ci.sh"

- name: Tear down the Stack
run: docker compose down
run: "docker compose down"
4 changes: 3 additions & 1 deletion ci.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash

set -e
bundle exec bin/rake db:create
bundle exec bin/rake db:schema:load
unset DATABASE_URL
bundle exec bin/rake spec
4 changes: 4 additions & 0 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ DATABASE_URL=postgresql://postgres:postgres@db/sc_dev

TEST_DB_HOST=db
TEST_DB_USERNAME=postgres
TEST_DB_PASSWORD=postgres

# Tell sidekiq to use hostname redis, not localhost
# If this var is set, Redis uses it by default. No config needed
Expand Down Expand Up @@ -44,3 +45,6 @@ PROMETHEUS_URL=
PROMETHEUS_USERNAME=
PROMETHEUS_PASSWORD=
PROMETHEUS_INSTANCE_LABEL=


DISCOURSE_SSO_SECRET="InsertDiscourseSSOSecretHERE"

0 comments on commit 33c26a9

Please sign in to comment.