File tree Expand file tree Collapse file tree 4 files changed +2
-5
lines changed Expand file tree Collapse file tree 4 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
- version : ' 3.7'
2
1
services :
3
2
# Unit server
4
3
rails-unit :
Original file line number Diff line number Diff line change 1
- version : ' 3.7'
2
1
services :
3
2
# Rails database
4
3
# If you wish to clear the database contents simply run
Original file line number Diff line number Diff line change 8
8
- uses : actions/checkout@v2
9
9
- name : Build and run tests
10
10
run : |
11
- docker-compose -f .circleci/compose-unit.yml up -d
11
+ docker-compose -f .circleci/compose-unit.yml up -d --wait
12
12
timeout 60 bash -c -- 'while [[ "$(docker-compose -f .circleci/compose-unit.yml exec -T rails-unit curl -s -o /dev/null -w ''%{http_code}'' http://localhost:3000/api/v1/health)" != "200" ]]; do sleep 1; printf "."; done'
13
13
docker-compose -f .circleci/compose-unit.yml exec -T rails-unit bundle exec rails db:test:prepare
14
14
docker-compose -f .circleci/compose-unit.yml exec -T rails-unit bundle exec rspec --format progress
Original file line number Diff line number Diff line change 37
37
# Remember to include global test helpers here
38
38
include ConcernHelper
39
39
40
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
41
- config . fixture_path = "#{ ::Rails . root } /spec/fixtures"
40
+ config . fixture_paths = [ "#{ ::Rails . root } /spec/fixtures" ]
42
41
43
42
DatabaseCleaner . allow_remote_database_url = true
44
43
config . use_transactional_fixtures = false
You can’t perform that action at this time.
0 commit comments