try actions
Some checks failed
CI / container-test-job (push) Failing after 1m27s

This commit is contained in:
Kris
2024-02-06 08:37:50 -05:00
parent 7322c088e8
commit 6c1908345a

View File

@@ -23,10 +23,10 @@ jobs:
run: docker build -t local . run: docker build -t local .
- name: Run Docker container - name: Run Docker container
run: docker run -d -p 3000:3000 local run: docker run -d -p 3000:3000 --name local local
- name: Wait for Rails to start - name: Wait for Rails to start
run: docker exec $(docker ps -q) /usr/bin/sh -c 'until nc -z localhost 3000; do sleep 1; done' run: docker exec -it local sh -c 'until nc -z localhost 3000; do sleep 1; done'
- name: Run Rails tests - name: Run Rails tests
run: docker exec $(docker ps -q) bundle exec rails test run: docker exec -it local bundle exec rails test