Timeout #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --wait --wait-timeout 30 | |
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 |