Skip to content

Commit

Permalink
Apply wait option on docker
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksmith-welder committed Aug 29, 2024
1 parent 2092aa0 commit 55dc362
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/cucumber-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,30 @@ jobs:
uses: actions/checkout@v2
- name: Set up Docker
run: |
docker compose -f docker-compose.yml up --detach
sleep 120
docker compose -f docker-compose.yml up --detach --wait
cucumber:
name: Run Cucmber Tests
runs-on: ubuntu-latest
needs: docker-setup

steps:
- name: Wait
run: sleep 20
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.0'
- name: Cache gems # You can cache your gems to make the workflow run faster
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run tests
run: curl http://localhost:8080
run: bundle exec cucumber HEADLESS=true HOST=localhost

0 comments on commit 55dc362

Please sign in to comment.