Skip to content

Commit d5acd25

Browse files
committed
Run nginx to proxy Electric in TS tests CI workflow
1 parent 381d684 commit d5acd25

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ts_tests.yml

Lines changed: 7 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,11 @@ 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 -d -v ./nginx.conf:/etc/nginx/nginx.conf -p 3002:3002 --add-host host.docker.internal:host-gateway nginx
144+
138145
- name: Run tests
139146
run: pnpm run coverage --run
140147

0 commit comments

Comments
 (0)