Skip to content

Commit e8bdd92

Browse files
committed
refactor: server auth e2e
1 parent a8f1770 commit e8bdd92

17 files changed

+2977
-454
lines changed

Diff for: .github/workflows/test.yml

+25-2
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,35 @@ jobs:
227227
run: npx playwright install --with-deps
228228

229229
- name: Docker build
230-
run: docker compose -f docker/docker-compose.e2e.yml build
231-
working-directory: ./
230+
run: docker compose build
232231

233232
- name: Run e2e tests
234233
run: npx playwright test
235234

235+
api-e2e-tests:
236+
name: API (e2e)
237+
runs-on: ubuntu-latest
238+
defaults:
239+
run:
240+
working-directory: ./e2e
241+
242+
steps:
243+
- name: Checkout code
244+
uses: actions/checkout@v4
245+
246+
- name: Run setup typescript-sdk
247+
run: npm ci && npm run build
248+
working-directory: ./open-api/typescript-sdk
249+
250+
- name: Install dependencies
251+
run: npm ci
252+
253+
- name: Docker build
254+
run: docker compose build
255+
256+
- name: Run e2e tests
257+
run: npm run test:api
258+
236259
mobile-unit-tests:
237260
name: Mobile
238261
runs-on: ubuntu-latest

Diff for: docker/docker-compose.e2e.yml renamed to e2e/docker-compose.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,18 @@ services:
3030
command: [ "./start.sh", "microservices" ]
3131
<<: *server-common
3232

33-
3433
redis:
3534
image: redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
36-
restart: always
3735

3836
database:
3937
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
38+
command: -c fsync=off -c shared_preload_libraries=vectors.so
4039
environment:
4140
POSTGRES_PASSWORD: postgres
4241
POSTGRES_USER: postgres
4342
POSTGRES_DB: immich
4443
ports:
45-
- 5432:5432
44+
- 5433:5432
4645

4746
volumes:
4847
model-cache:

0 commit comments

Comments
 (0)