feat(server): Use Testcontainers for e2e tests (#3202)

* Add testcontainers to e2e

* Run e2e tests in github without docker

* Run lint on e2e

* Cleaner setup ordering

* Rename setup file
This commit is contained in:
Jonathan Jogenfors
2023-07-11 23:54:44 +02:00
committed by GitHub
parent c86b2ae500
commit ea64fdd7b4
5 changed files with 588 additions and 3 deletions

View File

@@ -13,13 +13,20 @@ jobs:
e2e-tests:
name: Run end-to-end test suites
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Immich Server E2E Test
run: docker-compose -f ./docker/docker-compose.test.yml --env-file ./docker/.env.test up --abort-on-container-exit --exit-code-from immich-server-test
- name: Run npm install
run: npm ci
- name: Run e2e tests
run: npm run test:e2e
if: ${{ !cancelled() }}
doc-tests:
name: Run documentation checks