Skip to content

Apply wait option on docker #24

Apply wait option on docker

Apply wait option on docker #24

Workflow file for this run

name: Cucumber Tests
on: push
jobs:
docker-setup:
name: Set up Docker
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker
run: |
docker compose -f docker-compose.yml up --detach --wait
cucumber:
name: Run Cucmber Tests
runs-on: ubuntu-latest
needs: docker-setup
steps:
- 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: bundle exec cucumber HEADLESS=true HOST=localhost