Skip to content

Commit

Permalink
ci: use the cluster in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Jan 6, 2025
1 parent cd57cfe commit 1fc5cf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ jobs:
NODE_ENV: test

services:
redis:
image: redis/redis-stack-server:latest
ports:
- 16379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
mariadb:
image: mariadb:10.11.5
ports:
Expand All @@ -45,6 +35,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Set up Redis
run: |
docker compose --env-file config/redis/docker.env up
- name: Build
run: |
npm ci
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ jobs:
NODE_ENV: test

services:
redis:
image: redis/redis-stack-server:latest
ports:
- 16379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
mariadb:
image: mariadb:10.11.5
ports:
Expand All @@ -51,6 +41,9 @@ jobs:
sudo mv daemon.json /etc/docker/
sudo systemctl restart docker
docker restart $(docker ps -aq)
- name: Set up Redis
run: |
docker compose --env-file config/redis/docker.env up
- name: Build
run: |
npm ci
Expand Down

0 comments on commit 1fc5cf0

Please sign in to comment.