Skip to content

Commit

Permalink
refactor: server auth e2e (immich-app#7203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasm91 authored Feb 19, 2024
1 parent 59f8a88 commit a03b37c
Show file tree
Hide file tree
Showing 17 changed files with 2,977 additions and 454 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,35 @@ jobs:
run: npx playwright install --with-deps

- name: Docker build
run: docker compose -f docker/docker-compose.e2e.yml build
working-directory: ./
run: docker compose build

- name: Run e2e tests
run: npx playwright test

api-e2e-tests:
name: API (e2e)
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./e2e

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run setup typescript-sdk
run: npm ci && npm run build
working-directory: ./open-api/typescript-sdk

- name: Install dependencies
run: npm ci

- name: Docker build
run: docker compose build

- name: Run e2e tests
run: npm run test:api

mobile-unit-tests:
name: Mobile
runs-on: ubuntu-latest
Expand Down
5 changes: 2 additions & 3 deletions docker/docker-compose.e2e.yml → e2e/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,18 @@ services:
command: [ "./start.sh", "microservices" ]
<<: *server-common


redis:
image: redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
restart: always

database:
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
command: -c fsync=off -c shared_preload_libraries=vectors.so
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: immich
ports:
- 5432:5432
- 5433:5432

volumes:
model-cache:
Expand Down
Loading

0 comments on commit a03b37c

Please sign in to comment.