-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.22 KB
/
cucumber-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Cucumber
on: push
jobs:
cucumber:
name: Run Tests
runs-on: ubuntu-latest
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker
run: |
docker compose -f docker-compose.yml up --quiet-pull --detach
- name: Wait until the web server is ready
run: until curl -s -f -o /dev/null "http://localhost:8080"; do sleep 5; done
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.0'
- name: Cache gems
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 --quiet --jobs 4 --retry 3
- name: Run rubocop
run: |
bundle exec rubocop
- name: Cucumber strict dry run to check for not implemented steps
run: |
bundle exec cucumber --dry-run --strict
- name: Run tests
run: |
bundle exec cucumber --strict HEADLESS=true HOST=localhost staff_features