Skip to content

Commit

Permalink
ci: redis service
Browse files Browse the repository at this point in the history
  • Loading branch information
aldor007 committed Oct 20, 2022
1 parent 0f1354b commit 3da0c30
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ jobs:
password: ${{ secrets.GHR_TOKEN }}
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 6379:6379
steps:
- name: Git checkout
uses: actions/checkout@v2
Expand All @@ -57,10 +64,6 @@ jobs:
- name: Install go deps
run: go mod download

- name: Start Redis
uses: supercharge/redis-github-action@1.4.0
with:
redis-version: 6.2
- name: Run the integrations tests
run: |
make run-test-server-redis &
Expand Down

0 comments on commit 3da0c30

Please sign in to comment.