Skip to content

Commit

Permalink
ci: use github action to run docker-compose
Browse files Browse the repository at this point in the history
docker-compose seems to have disappeared from the github actions environment, so use this action instead
  • Loading branch information
sourcefilter committed Sep 27, 2024
1 parent be086fb commit 512510a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Start and Initialize Docker services
- name: run docker-compose
uses: sudo-bot/action-docker-compose@8992be6e2152ce2e47ca3552ef8a51adcc005f2c
with:
cli-args: "up"
- name: Initialize database
run: |
docker-compose run web bundle install
docker-compose up --detach
docker-compose run web bundle exec rails db:setup
docker-compose ps
docker-compose exec web bundle exec rails db:setup
- name: run rspec
run: docker-compose run web bundle exec rspec spec
- name: Stop docker services
run: docker-compose down
run: docker-compose exec web bundle exec rspec spec

0 comments on commit 512510a

Please sign in to comment.