Skip to content

Commit

Permalink
Update CI to not re-start image for each step.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbiggred committed May 4, 2023
1 parent 2dddcee commit 5276967
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ jobs:
- name: Build Docker Image Step
run: |
docker compose build web
docker compose run --rm web echo "Installing gems and yarn files..."
docker compose up web
- name: Rubocop Standard
run: docker compose run --rm web standardrb
run: docker compose exec web standardrb

- name: Run Sorbet
run: docker compose run --rm web srb
run: docker compose exec web srb

- name: Test setup
run: |
docker compose run --rm web bundle exec rails db:create RAILS_ENV=test
docker compose run --rm web bundle exec rails db:schema:load RAILS_ENV=test
docker compose exec web bundle exec rails db:create RAILS_ENV=test
docker compose exec web bundle exec rails db:schema:load RAILS_ENV=test
- name: Run tests
run: docker compose run --rm web bundle exec rails test
run: docker compose exec web bundle exec rails test

0 comments on commit 5276967

Please sign in to comment.