Skip to content

Commit

Permalink
add some docker
Browse files Browse the repository at this point in the history
  • Loading branch information
croyfish committed Oct 28, 2024
1 parent 27d2674 commit 8634b26
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@ jobs:
- name: check out code
uses: actions/checkout@v2

- name: set up docker
uses: docker/setup-buildx-action@v2

- name: install docker compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: build application
run: |
docker-compose build
- name: Run tests
run: |
docker-compose run webapp
docker exec -it webapp bundle exec rails test
docker-compose up -d
docker-compose exec webapp bundle exec rails test

0 comments on commit 8634b26

Please sign in to comment.