Skip to content

Commit

Permalink
fix test redis port mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
kane50613 committed Mar 3, 2024
1 parent a8850c3 commit 4beaf41
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ jobs:
test:
runs-on: ubuntu-latest

# Service containers to run with `container-job`
services:
# Label used to access the service container
redis:
# Docker Hub image
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -44,7 +42,7 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Run tests
run: pnpm test

0 comments on commit 4beaf41

Please sign in to comment.