2022-06-19 06:16:35 -07:00
|
|
|
name: Test
|
|
|
|
on:
|
2022-07-15 22:48:35 -07:00
|
|
|
workflow_dispatch:
|
2022-06-19 06:16:35 -07:00
|
|
|
pull_request:
|
2022-08-11 06:27:44 -07:00
|
|
|
push:
|
|
|
|
branches: [main]
|
2022-06-19 06:16:35 -07:00
|
|
|
|
2023-02-19 09:44:53 -07:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-06-19 06:16:35 -07:00
|
|
|
jobs:
|
2022-09-08 02:07:27 -07:00
|
|
|
server-unit-tests:
|
2023-11-28 20:07:47 -07:00
|
|
|
name: Server
|
2022-08-11 06:27:44 -07:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-12 13:17:27 -07:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./server
|
2022-08-11 06:27:44 -07:00
|
|
|
|
2022-08-11 11:46:11 -07:00
|
|
|
steps:
|
2022-08-11 06:27:44 -07:00
|
|
|
- name: Checkout code
|
2023-09-05 18:50:22 -07:00
|
|
|
uses: actions/checkout@v4
|
2022-08-11 06:27:44 -07:00
|
|
|
|
2023-04-12 13:17:27 -07:00
|
|
|
- name: Run npm install
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Run linter
|
|
|
|
run: npm run lint
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run formatter
|
|
|
|
run: npm run format
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run tsc
|
|
|
|
run: npm run check
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run unit tests & coverage
|
|
|
|
run: npm run test:cov
|
|
|
|
if: ${{ !cancelled() }}
|
2022-09-08 08:44:13 -07:00
|
|
|
|
2023-07-06 07:37:47 -07:00
|
|
|
cli-unit-tests:
|
2023-11-28 20:07:47 -07:00
|
|
|
name: CLI
|
2023-07-06 07:37:47 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./cli
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-05 18:50:22 -07:00
|
|
|
uses: actions/checkout@v4
|
2023-07-06 07:37:47 -07:00
|
|
|
|
2024-02-02 22:44:53 -07:00
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
|
|
|
|
2024-03-14 10:09:27 -07:00
|
|
|
- name: Setup typescript-sdk
|
2024-01-12 05:36:27 -07:00
|
|
|
run: npm ci && npm run build
|
|
|
|
working-directory: ./open-api/typescript-sdk
|
|
|
|
|
2024-03-14 10:09:27 -07:00
|
|
|
- name: Install deps
|
2023-07-06 07:37:47 -07:00
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Run linter
|
|
|
|
run: npm run lint
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run formatter
|
|
|
|
run: npm run format
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2023-11-19 15:16:24 -07:00
|
|
|
- name: Run tsc
|
|
|
|
run: npm run check
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2023-07-06 07:37:47 -07:00
|
|
|
- name: Run unit tests & coverage
|
|
|
|
run: npm run test:cov
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2024-06-21 17:09:02 -07:00
|
|
|
cli-unit-tests-win:
|
|
|
|
name: CLI (Windows)
|
|
|
|
runs-on: windows-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./cli
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
|
|
|
|
|
|
|
- name: Setup typescript-sdk
|
|
|
|
run: npm ci && npm run build
|
|
|
|
working-directory: ./open-api/typescript-sdk
|
|
|
|
|
|
|
|
- name: Install deps
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
# Skip linter & formatter in Windows test.
|
|
|
|
- name: Run tsc
|
|
|
|
run: npm run check
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run unit tests & coverage
|
|
|
|
run: npm run test:cov
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2022-09-08 08:44:13 -07:00
|
|
|
web-unit-tests:
|
2023-11-28 20:07:47 -07:00
|
|
|
name: Web
|
2022-09-08 08:44:13 -07:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-12 13:17:27 -07:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./web
|
2022-09-08 08:44:13 -07:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-05 18:50:22 -07:00
|
|
|
uses: actions/checkout@v4
|
2022-09-08 08:44:13 -07:00
|
|
|
|
2024-01-12 05:36:27 -07:00
|
|
|
- name: Run setup typescript-sdk
|
|
|
|
run: npm ci && npm run build
|
|
|
|
working-directory: ./open-api/typescript-sdk
|
|
|
|
|
2023-04-12 13:17:27 -07:00
|
|
|
- name: Run npm install
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Run linter
|
|
|
|
run: npm run lint
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run formatter
|
|
|
|
run: npm run format
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run svelte checks
|
2023-06-02 06:55:08 -07:00
|
|
|
run: npm run check:svelte
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run tsc
|
|
|
|
run: npm run check:typescript
|
2023-04-12 13:17:27 -07:00
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2024-01-01 10:36:49 -07:00
|
|
|
- name: Run unit tests & coverage
|
|
|
|
run: npm run test:cov
|
|
|
|
if: ${{ !cancelled() }}
|
2023-01-25 09:10:04 -07:00
|
|
|
|
2024-02-19 15:25:57 -07:00
|
|
|
e2e-tests:
|
|
|
|
name: End-to-End Tests
|
2024-02-13 11:08:49 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./e2e
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
2024-02-19 15:25:57 -07:00
|
|
|
with:
|
2024-02-29 09:26:55 -07:00
|
|
|
submodules: 'recursive'
|
2024-02-19 15:25:57 -07:00
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
2024-02-13 11:08:49 -07:00
|
|
|
|
|
|
|
- name: Run setup typescript-sdk
|
|
|
|
run: npm ci && npm run build
|
|
|
|
working-directory: ./open-api/typescript-sdk
|
2024-02-29 09:26:55 -07:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-13 11:08:49 -07:00
|
|
|
|
2024-02-19 15:25:57 -07:00
|
|
|
- name: Run setup cli
|
|
|
|
run: npm ci && npm run build
|
|
|
|
working-directory: ./cli
|
2024-02-29 09:26:55 -07:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-19 15:25:57 -07:00
|
|
|
|
2024-02-13 11:08:49 -07:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
2024-02-29 09:26:55 -07:00
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run linter
|
|
|
|
run: npm run lint
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run formatter
|
|
|
|
run: npm run format
|
|
|
|
if: ${{ !cancelled() }}
|
2024-02-13 11:08:49 -07:00
|
|
|
|
2024-03-09 16:18:25 -07:00
|
|
|
- name: Run tsc
|
|
|
|
run: npm run check
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2024-02-13 11:08:49 -07:00
|
|
|
- name: Install Playwright Browsers
|
2024-02-29 07:22:25 -07:00
|
|
|
run: npx playwright install --with-deps chromium
|
2024-02-29 09:26:55 -07:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-13 11:08:49 -07:00
|
|
|
|
|
|
|
- name: Docker build
|
2024-02-19 10:03:51 -07:00
|
|
|
run: docker compose build
|
2024-02-29 09:26:55 -07:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-13 11:08:49 -07:00
|
|
|
|
2024-02-19 15:25:57 -07:00
|
|
|
- name: Run e2e tests (api & cli)
|
|
|
|
run: npm run test
|
2024-02-29 09:26:55 -07:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-19 10:03:51 -07:00
|
|
|
|
2024-02-19 15:25:57 -07:00
|
|
|
- name: Run e2e tests (web)
|
|
|
|
run: npx playwright test
|
2024-02-29 09:26:55 -07:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-19 10:03:51 -07:00
|
|
|
|
2023-01-25 09:10:04 -07:00
|
|
|
mobile-unit-tests:
|
2023-11-28 20:07:47 -07:00
|
|
|
name: Mobile
|
2023-01-25 09:10:04 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 18:50:22 -07:00
|
|
|
- uses: actions/checkout@v4
|
2023-01-25 09:10:04 -07:00
|
|
|
- name: Setup Flutter SDK
|
|
|
|
uses: subosito/flutter-action@v2
|
|
|
|
with:
|
2024-02-29 09:26:55 -07:00
|
|
|
channel: 'stable'
|
2024-05-28 04:15:28 -07:00
|
|
|
flutter-version-file: ./mobile/pubspec.yaml
|
2023-01-25 09:10:04 -07:00
|
|
|
- name: Run tests
|
|
|
|
working-directory: ./mobile
|
2023-05-17 10:36:02 -07:00
|
|
|
run: flutter test -j 1
|
2023-01-25 09:10:04 -07:00
|
|
|
|
2023-06-27 16:21:33 -07:00
|
|
|
ml-unit-tests:
|
2023-11-28 20:07:47 -07:00
|
|
|
name: Machine Learning
|
2023-06-27 16:21:33 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./machine-learning
|
|
|
|
steps:
|
2023-09-05 18:50:22 -07:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-27 16:21:33 -07:00
|
|
|
- name: Install poetry
|
|
|
|
run: pipx install poetry
|
2023-12-07 06:14:19 -07:00
|
|
|
- uses: actions/setup-python@v5
|
2023-06-27 16:21:33 -07:00
|
|
|
with:
|
|
|
|
python-version: 3.11
|
2024-02-29 09:26:55 -07:00
|
|
|
cache: 'poetry'
|
2023-06-27 16:21:33 -07:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2024-01-21 16:22:39 -07:00
|
|
|
poetry install --with dev --with cpu
|
2023-06-27 16:21:33 -07:00
|
|
|
- name: Lint with ruff
|
|
|
|
run: |
|
2023-12-25 20:37:48 -07:00
|
|
|
poetry run ruff check --output-format=github app export
|
2023-06-27 16:21:33 -07:00
|
|
|
- name: Check black formatting
|
|
|
|
run: |
|
2023-11-13 09:18:46 -07:00
|
|
|
poetry run black --check app export
|
2023-06-27 16:21:33 -07:00
|
|
|
- name: Run mypy type checking
|
|
|
|
run: |
|
2023-12-20 18:47:56 -07:00
|
|
|
poetry run mypy --install-types --non-interactive --strict app/
|
2023-06-27 16:21:33 -07:00
|
|
|
- name: Run tests and coverage
|
|
|
|
run: |
|
2024-02-11 15:58:56 -07:00
|
|
|
poetry run pytest app --cov=app --cov-report term-missing
|
2023-06-27 16:21:33 -07:00
|
|
|
|
2024-02-18 16:03:01 -07:00
|
|
|
shellcheck:
|
|
|
|
name: ShellCheck
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Run ShellCheck
|
|
|
|
uses: ludeeus/action-shellcheck@master
|
|
|
|
with:
|
|
|
|
ignore_paths: >-
|
|
|
|
**/open-api/**
|
|
|
|
**/openapi/**
|
|
|
|
**/node_modules/**
|
|
|
|
|
2023-02-19 09:44:53 -07:00
|
|
|
generated-api-up-to-date:
|
2023-11-28 20:07:47 -07:00
|
|
|
name: OpenAPI Clients
|
2023-02-19 09:44:53 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-23 04:40:57 -07:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install server dependencies
|
|
|
|
run: npm --prefix=server ci
|
|
|
|
|
|
|
|
- name: Build the app
|
|
|
|
run: npm --prefix=server run build
|
|
|
|
|
2023-02-19 09:44:53 -07:00
|
|
|
- name: Run API generation
|
2024-01-12 05:36:27 -07:00
|
|
|
run: make open-api
|
2024-05-23 04:40:57 -07:00
|
|
|
|
2023-02-19 09:44:53 -07:00
|
|
|
- name: Find file changes
|
2024-05-07 20:22:22 -07:00
|
|
|
uses: tj-actions/verify-changed-files@v20
|
2023-02-19 09:44:53 -07:00
|
|
|
id: verify-changed-files
|
|
|
|
with:
|
|
|
|
files: |
|
|
|
|
mobile/openapi
|
2024-01-12 05:36:27 -07:00
|
|
|
open-api/typescript-sdk
|
2024-05-23 04:40:57 -07:00
|
|
|
open-api/immich-openapi-specs.json
|
|
|
|
|
2023-02-19 09:44:53 -07:00
|
|
|
- name: Verify files have not changed
|
|
|
|
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
|
|
run: |
|
|
|
|
echo "ERROR: Generated files not up to date!"
|
|
|
|
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}"
|
|
|
|
exit 1
|
|
|
|
|
2023-02-19 18:50:27 -07:00
|
|
|
generated-typeorm-migrations-up-to-date:
|
2023-11-30 08:10:30 -07:00
|
|
|
name: TypeORM Checks
|
2023-02-19 18:50:27 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
services:
|
|
|
|
postgres:
|
2024-02-12 18:01:03 -07:00
|
|
|
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
|
2023-02-19 18:50:27 -07:00
|
|
|
env:
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_DB: immich
|
|
|
|
options: >-
|
|
|
|
--health-cmd pg_isready
|
|
|
|
--health-interval 10s
|
|
|
|
--health-timeout 5s
|
|
|
|
--health-retries 5
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
2023-10-05 09:35:58 -07:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./server
|
|
|
|
|
2023-02-19 18:50:27 -07:00
|
|
|
steps:
|
2023-10-05 09:35:58 -07:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2023-02-19 18:50:27 -07:00
|
|
|
- name: Install server dependencies
|
2023-10-05 09:35:58 -07:00
|
|
|
run: npm ci
|
|
|
|
|
2023-11-30 08:10:30 -07:00
|
|
|
- name: Build the app
|
2023-10-05 09:35:58 -07:00
|
|
|
run: npm run build
|
|
|
|
|
2023-02-19 18:50:27 -07:00
|
|
|
- name: Run existing migrations
|
2023-10-05 09:35:58 -07:00
|
|
|
run: npm run typeorm:migrations:run
|
|
|
|
|
2023-12-29 11:41:33 -07:00
|
|
|
- name: Test npm run schema:reset command works
|
|
|
|
run: npm run typeorm:schema:reset
|
|
|
|
|
2023-02-19 18:50:27 -07:00
|
|
|
- name: Generate new migrations
|
|
|
|
continue-on-error: true
|
2024-03-20 14:02:51 -07:00
|
|
|
run: npm run typeorm:migrations:generate ./src/migrations/TestMigration
|
2023-10-05 09:35:58 -07:00
|
|
|
|
2023-02-19 18:50:27 -07:00
|
|
|
- name: Find file changes
|
2024-05-07 20:22:22 -07:00
|
|
|
uses: tj-actions/verify-changed-files@v20
|
2023-02-19 18:50:27 -07:00
|
|
|
id: verify-changed-files
|
|
|
|
with:
|
|
|
|
files: |
|
2024-03-20 14:02:51 -07:00
|
|
|
server/src/migrations/
|
2023-11-30 08:10:30 -07:00
|
|
|
- name: Verify migration files have not changed
|
2023-02-19 18:50:27 -07:00
|
|
|
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
|
|
run: |
|
2023-11-30 08:10:30 -07:00
|
|
|
echo "ERROR: Generated migration files not up to date!"
|
2023-02-19 18:50:27 -07:00
|
|
|
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}"
|
|
|
|
exit 1
|
|
|
|
|
2023-11-30 08:10:30 -07:00
|
|
|
- name: Run SQL generation
|
2024-05-23 04:40:57 -07:00
|
|
|
run: npm run sync:sql
|
2023-12-08 09:15:46 -07:00
|
|
|
env:
|
|
|
|
DB_URL: postgres://postgres:postgres@localhost:5432/immich
|
2023-11-30 08:10:30 -07:00
|
|
|
|
|
|
|
- name: Find file changes
|
2024-05-07 20:22:22 -07:00
|
|
|
uses: tj-actions/verify-changed-files@v20
|
2023-11-30 08:10:30 -07:00
|
|
|
id: verify-changed-sql-files
|
|
|
|
with:
|
|
|
|
files: |
|
2024-03-20 20:15:09 -07:00
|
|
|
server/src/queries
|
2023-11-30 08:10:30 -07:00
|
|
|
|
|
|
|
- name: Verify SQL files have not changed
|
|
|
|
if: steps.verify-changed-sql-files.outputs.files_changed == 'true'
|
|
|
|
run: |
|
|
|
|
echo "ERROR: Generated SQL files not up to date!"
|
|
|
|
echo "Changed files: ${{ steps.verify-changed-sql-files.outputs.changed_files }}"
|
|
|
|
exit 1
|
|
|
|
|
2023-03-16 20:15:12 -07:00
|
|
|
# mobile-integration-tests:
|
|
|
|
# name: Run mobile end-to-end integration tests
|
|
|
|
# runs-on: macos-latest
|
|
|
|
# steps:
|
2023-09-05 18:50:22 -07:00
|
|
|
# - uses: actions/checkout@v4
|
2023-03-16 20:15:12 -07:00
|
|
|
# - uses: actions/setup-java@v3
|
|
|
|
# with:
|
|
|
|
# distribution: 'zulu'
|
|
|
|
# java-version: '12.x'
|
|
|
|
# cache: 'gradle'
|
|
|
|
# - name: Cache android SDK
|
|
|
|
# uses: actions/cache@v3
|
|
|
|
# id: android-sdk
|
|
|
|
# with:
|
|
|
|
# key: android-sdk
|
|
|
|
# path: |
|
|
|
|
# /usr/local/lib/android/
|
|
|
|
# ~/.android
|
|
|
|
# - name: Cache Gradle
|
|
|
|
# uses: actions/cache@v3
|
|
|
|
# with:
|
|
|
|
# path: |
|
|
|
|
# ./mobile/build/
|
|
|
|
# ./mobile/android/.gradle/
|
|
|
|
# key: ${{ runner.os }}-flutter-${{ hashFiles('**/*.gradle*', 'pubspec.lock') }}
|
|
|
|
# - name: Setup Android SDK
|
|
|
|
# if: steps.android-sdk.outputs.cache-hit != 'true'
|
|
|
|
# uses: android-actions/setup-android@v2
|
|
|
|
# - name: AVD cache
|
|
|
|
# uses: actions/cache@v3
|
|
|
|
# id: avd-cache
|
|
|
|
# with:
|
|
|
|
# path: |
|
|
|
|
# ~/.android/avd/*
|
|
|
|
# ~/.android/adb*
|
|
|
|
# key: avd-29
|
|
|
|
# - name: create AVD and generate snapshot for caching
|
|
|
|
# if: steps.avd-cache.outputs.cache-hit != 'true'
|
|
|
|
# uses: reactivecircus/android-emulator-runner@v2.27.0
|
|
|
|
# with:
|
|
|
|
# working-directory: ./mobile
|
|
|
|
# cores: 2
|
|
|
|
# api-level: 29
|
|
|
|
# arch: x86_64
|
|
|
|
# profile: pixel
|
|
|
|
# target: default
|
|
|
|
# force-avd-creation: false
|
|
|
|
# emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
|
|
# disable-animations: false
|
|
|
|
# script: echo "Generated AVD snapshot for caching."
|
|
|
|
# - name: Setup Flutter SDK
|
|
|
|
# uses: subosito/flutter-action@v2
|
|
|
|
# with:
|
|
|
|
# channel: 'stable'
|
|
|
|
# flutter-version: '3.7.3'
|
|
|
|
# cache: true
|
|
|
|
# - name: Run integration tests
|
|
|
|
# uses: Wandalen/wretry.action@master
|
|
|
|
# with:
|
|
|
|
# action: reactivecircus/android-emulator-runner@v2.27.0
|
|
|
|
# with: |
|
|
|
|
# working-directory: ./mobile
|
|
|
|
# cores: 2
|
|
|
|
# api-level: 29
|
|
|
|
# arch: x86_64
|
|
|
|
# profile: pixel
|
|
|
|
# target: default
|
|
|
|
# force-avd-creation: false
|
|
|
|
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
|
|
# disable-animations: true
|
|
|
|
# script: |
|
|
|
|
# flutter pub get
|
|
|
|
# flutter test integration_test
|
|
|
|
# attempt_limit: 3
|