Skip to content

Commit 14c41d1

Browse files
committed
Run nginx to proxy Electric in TS tests CI workflow
1 parent a11e839 commit 14c41d1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ts_tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ jobs:
120120
--health-interval 30s
121121
--health-retries 6
122122
steps:
123+
# - uses: docker/setup-compose-action@v1
124+
123125
- uses: actions/checkout@v4
124126

125127
- uses: pnpm/action-setup@v4
@@ -135,6 +137,23 @@ jobs:
135137
- name: Build Node dependencies, if any
136138
run: pnpm -r --filter "$(jq '.name' -r package.json)^..." build
137139

140+
- name: Run nginx to serve as proxy for Electric in caching tests
141+
run: |
142+
docker run --rm -v ./dev/nginx.conf:/etc/nginx/nginx.conf -p 3002:3002 --add-host host.docker.internal:host-gateway nginx
143+
# nginx:
144+
# image: nginx:latest
145+
# environment:
146+
# NGINX_ELECTRIC_HOST: http://host.docker.internal:3000
147+
# ports:
148+
# - '3002:3002'
149+
# volumes:
150+
# - ./nginx.conf:/etc/nginx/nginx.conf
151+
# - ./electric-nginx.conf.template:/etc/nginx/templates/electric-nginx.conf.template
152+
# extra_hosts:
153+
# - 'host.docker.internal:host-gateway'
154+
# depends_on:
155+
# - postgres
156+
138157
- name: Run tests
139158
run: pnpm run coverage --run
140159

0 commit comments

Comments
 (0)