2022-06-19 15:16:35 +02:00
|
|
|
name: Test
|
|
|
|
on:
|
2022-07-16 07:48:35 +02:00
|
|
|
workflow_dispatch:
|
2022-06-19 15:16:35 +02:00
|
|
|
pull_request:
|
2022-08-11 15:27:44 +02:00
|
|
|
push:
|
|
|
|
branches: [main]
|
2022-06-19 15:16:35 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-08-11 15:27:44 +02:00
|
|
|
e2e-tests:
|
|
|
|
name: Run end-to-end test suites
|
2022-06-19 15:16:35 +02:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2022-09-07 13:08:44 +02:00
|
|
|
uses: actions/checkout@v3
|
2022-06-19 15:16:35 +02:00
|
|
|
|
2022-10-05 12:19:11 +02:00
|
|
|
- name: Run Immich Server E2E Test
|
2022-07-17 06:43:31 +02:00
|
|
|
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
|
2022-08-11 15:27:44 +02:00
|
|
|
|
2022-09-08 11:07:27 +02:00
|
|
|
server-unit-tests:
|
|
|
|
name: Run server unit test suites and checks
|
2022-08-11 15:27:44 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2022-08-11 20:46:11 +02:00
|
|
|
steps:
|
2022-08-11 15:27:44 +02:00
|
|
|
- name: Checkout code
|
2022-09-07 13:08:44 +02:00
|
|
|
uses: actions/checkout@v3
|
2022-08-11 15:27:44 +02:00
|
|
|
|
|
|
|
- name: Run tests
|
2022-09-08 11:07:27 +02:00
|
|
|
run: cd server && npm ci && npm run check:all
|
2022-09-08 17:44:13 +02:00
|
|
|
|
|
|
|
web-unit-tests:
|
|
|
|
name: Run web unit test suites and checks
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: cd web && npm ci && npm run check:all
|