cp .env.example .env
docker-compose build
docker-compose run --rm app bash -c "bundle install && bundle exec rails db:create db:migrate db:seed && yarn --check-files"
docker-compose up -dCode will lbe deployed autmatically after push into master branch. See github actions.
CI will start automatically on every code update. See github actions.
For local testing:
docker-compose run app bash -c 'RAILS_ENV=test rspec spec'docker-compose run app bash -c 'rubocop'docker-compose exec app xvfb-run -a bundle exec cucumberTo debug this you can try
- Set breakpoints in the steps code:
binding.pry- Or take a screenshot:
page.save_screenshot('/app/test.png')