File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff 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,24 @@ 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+ working-directory : packages/sync-service/dev
142+ run : |
143+ docker run --rm -v ./nginx.conf:/etc/nginx/nginx.conf -p 3002:3002 --add-host host.docker.internal:host-gateway nginx
144+ # nginx:
145+ # image: nginx:latest
146+ # environment:
147+ # NGINX_ELECTRIC_HOST: http://host.docker.internal:3000
148+ # ports:
149+ # - '3002:3002'
150+ # volumes:
151+ # - ./nginx.conf:/etc/nginx/nginx.conf
152+ # - ./electric-nginx.conf.template:/etc/nginx/templates/electric-nginx.conf.template
153+ # extra_hosts:
154+ # - 'host.docker.internal:host-gateway'
155+ # depends_on:
156+ # - postgres
157+
138158 - name : Run tests
139159 run : pnpm run coverage --run
140160
You can’t perform that action at this time.
0 commit comments