Skip to content

Commit

Permalink
Use Redis service in Github, not manual compose
Browse files Browse the repository at this point in the history
rgalanakis committed Sep 5, 2022
1 parent 1ad421d commit e371aff
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -9,6 +9,16 @@ jobs:
strategy:
matrix:
ruby-version: ['3.1', '3.0', '2.7']
services:
redis:
image: redis
ports:
- 22379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repo
uses: actions/checkout@v2
@@ -19,11 +29,7 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Start backing services
run: docker-compose up -d
- name: Run rubocop
run: bundle exec rubocop
- name: Wait for services to come up
run: sleep 3
- name: Run specs
run: bundle exec rspec spec/

0 comments on commit e371aff

Please sign in to comment.