Skip to content

comply with rubocop #1942

comply with rubocop

comply with rubocop #1942

Workflow file for this run

name: test-unit
on: [push]
jobs:
test-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install docker compose
run: sudo curl -SL https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
- name: Build and run tests
run: |
docker-compose -f .circleci/compose-unit.yml up -d --wait
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'
docker-compose -f .circleci/compose-unit.yml exec -T rails-unit bundle exec rails db:test:prepare
docker-compose -f .circleci/compose-unit.yml exec -T rails-unit bundle exec rspec --format progress