File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-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,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
You can’t perform that action at this time.
0 commit comments