mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 02:18:50 -07:00
29f68e6dbb
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
95 lines
2.5 KiB
YAML
95 lines
2.5 KiB
YAML
name: Test
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
e2e-tests:
|
|
name: Run end-to-end test suites
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
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
|
|
|
|
server-unit-tests:
|
|
name: Run server unit test suites and checks
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run tests
|
|
run: cd server && npm ci && npm run check:all
|
|
|
|
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
|
|
|
|
mobile-unit-tests:
|
|
name: Run mobile unit tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Flutter SDK
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: 'stable'
|
|
flutter-version: '3.3.10'
|
|
- name: Run tests
|
|
working-directory: ./mobile
|
|
run: flutter test
|
|
|
|
mobile-integration-tests:
|
|
name: Run mobile end-to-end integration tests
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
- name: Cache android SDK
|
|
uses: actions/cache@v3
|
|
id: android-sdk
|
|
with:
|
|
key: android-sdk
|
|
path: |
|
|
/usr/local/lib/android/
|
|
~/.android
|
|
- name: Setup Android SDK
|
|
if: steps.android-sdk.outputs.cache-hit != 'true'
|
|
uses: android-actions/setup-android@v2
|
|
- name: Setup Flutter SDK
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: 'stable'
|
|
flutter-version: '3.3.10'
|
|
- name: Run integration tests
|
|
uses: reactivecircus/android-emulator-runner@v2.27.0
|
|
with:
|
|
working-directory: ./mobile
|
|
api-level: 29
|
|
arch: x86_64
|
|
profile: pixel
|
|
target: default
|
|
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
|
|
disable-linux-hw-accel: false
|
|
script: |
|
|
flutter pub get
|
|
flutter test integration_test
|