Skip to content

Commit

Permalink
Fix redis conn issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jinalviranii committed Aug 28, 2024
1 parent 858a4a8 commit 5442304
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/call_test_cases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
]
node-version: [16.x, 18.x, 20.x]

services:
redis:
image: redis
ports:
- 6379:6379
options: --health-cmd="redis-cli ping || exit 1" --health-interval=10s --health-timeout=5s --health-retries=5

steps:
- name: Get branch name
shell: bash
Expand All @@ -31,6 +38,10 @@ jobs:
- name: Install packages and run tests for node
run: |
npm install
npm run test
env:
REDIS_HOST: localhost
REDIS_PORT: 6379

- name: Coveralls (Uploading test report)
if: ${{ steps.get_branch.outputs.branch == 'main' }}
Expand Down

0 comments on commit 5442304

Please sign in to comment.