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
|
|
|
|
2023-02-19 18:44:53 +02:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-06-19 15:16:35 +02:00
|
|
|
jobs:
|
2024-01-10 06:04:16 +02:00
|
|
|
server-e2e-jobs:
|
|
|
|
name: Server (e2e-jobs)
|
2024-02-27 14:35:14 +02:00
|
|
|
runs-on: ubuntu-latest
|
2022-06-19 15:16:35 +02:00
|
|
|
|
2023-01-15 21:08:24 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-06 03:50:22 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-10-06 23:32:28 +02:00
|
|
|
with:
|
2024-02-29 18:26:55 +02:00
|
|
|
submodules: 'recursive'
|
2023-07-11 23:54:44 +02:00
|
|
|
|
|
|
|
- name: Run e2e tests
|
2024-01-10 06:04:16 +02:00
|
|
|
run: make server-e2e-jobs
|
2022-08-11 15:27:44 +02:00
|
|
|
|
2023-04-24 19:49:20 +02:00
|
|
|
doc-tests:
|
2023-11-29 05:07:47 +02:00
|
|
|
name: Docs
|
2023-04-24 19:49:20 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./docs
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-06 03:50:22 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-04-24 19:49:20 +02:00
|
|
|
|
|
|
|
- name: Run npm install
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Run formatter
|
|
|
|
run: npm run format
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2023-11-29 04:27:01 +02:00
|
|
|
- name: Run build
|
|
|
|
run: npm run build
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2022-09-08 11:07:27 +02:00
|
|
|
server-unit-tests:
|
2023-11-29 05:07:47 +02:00
|
|
|
name: Server
|
2022-08-11 15:27:44 +02:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-12 22:17:27 +02:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./server
|
2022-08-11 15:27:44 +02:00
|
|
|
|
2022-08-11 20:46:11 +02:00
|
|
|
steps:
|
2022-08-11 15:27:44 +02:00
|
|
|
- name: Checkout code
|
2023-09-06 03:50:22 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-08-11 15:27:44 +02:00
|
|
|
|
2023-04-12 22:17:27 +02: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 17:44:13 +02:00
|
|
|
|
2023-07-06 16:37:47 +02:00
|
|
|
cli-unit-tests:
|
2023-11-29 05:07:47 +02:00
|
|
|
name: CLI
|
2023-07-06 16:37:47 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./cli
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-06 03:50:22 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-07-06 16:37:47 +02:00
|
|
|
|
2024-02-03 07:44:53 +02:00
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
|
|
|
|
2024-01-12 14:36:27 +02:00
|
|
|
- name: Run setup typescript-sdk
|
|
|
|
run: npm ci && npm run build
|
|
|
|
working-directory: ./open-api/typescript-sdk
|
|
|
|
|
|
|
|
- name: Run npm install (cli)
|
2023-12-19 04:29:26 +02:00
|
|
|
run: npm ci
|
|
|
|
|
2024-01-12 14:36:27 +02:00
|
|
|
- name: Run npm install (server)
|
2023-07-06 16:37:47 +02:00
|
|
|
run: npm ci
|
2023-12-19 04:29:26 +02:00
|
|
|
working-directory: ./server
|
2023-07-06 16:37:47 +02:00
|
|
|
|
|
|
|
- name: Run linter
|
|
|
|
run: npm run lint
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run formatter
|
|
|
|
run: npm run format
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2023-11-20 00:16:24 +02:00
|
|
|
- name: Run tsc
|
|
|
|
run: npm run check
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2023-07-06 16:37:47 +02:00
|
|
|
- name: Run unit tests & coverage
|
|
|
|
run: npm run test:cov
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2022-09-08 17:44:13 +02:00
|
|
|
web-unit-tests:
|
2023-11-29 05:07:47 +02:00
|
|
|
name: Web
|
2022-09-08 17:44:13 +02:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-12 22:17:27 +02:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./web
|
2022-09-08 17:44:13 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-06 03:50:22 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-09-08 17:44:13 +02:00
|
|
|
|
2024-01-12 14:36:27 +02:00
|
|
|
- name: Run setup typescript-sdk
|
|
|
|
run: npm ci && npm run build
|
|
|
|
working-directory: ./open-api/typescript-sdk
|
|
|
|
|
2023-04-12 22:17:27 +02: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 15:55:08 +02:00
|
|
|
run: npm run check:svelte
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run tsc
|
|
|
|
run: npm run check:typescript
|
2023-04-12 22:17:27 +02:00
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2024-01-01 19:36:49 +02:00
|
|
|
- name: Run unit tests & coverage
|
|
|
|
run: npm run test:cov
|
|
|
|
if: ${{ !cancelled() }}
|
2023-01-25 18:10:04 +02:00
|
|
|
|
2024-02-20 00:25:57 +02:00
|
|
|
e2e-tests:
|
|
|
|
name: End-to-End Tests
|
2024-02-13 20:08:49 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./e2e
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
2024-02-20 00:25:57 +02:00
|
|
|
with:
|
2024-02-29 18:26:55 +02:00
|
|
|
submodules: 'recursive'
|
2024-02-20 00:25:57 +02:00
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
2024-02-13 20:08:49 +02:00
|
|
|
|
|
|
|
- name: Run setup typescript-sdk
|
|
|
|
run: npm ci && npm run build
|
|
|
|
working-directory: ./open-api/typescript-sdk
|
2024-02-29 18:26:55 +02:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-13 20:08:49 +02:00
|
|
|
|
2024-02-20 00:25:57 +02:00
|
|
|
- name: Run setup cli
|
|
|
|
run: npm ci && npm run build
|
|
|
|
working-directory: ./cli
|
2024-02-29 18:26:55 +02:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-20 00:25:57 +02:00
|
|
|
|
2024-02-13 20:08:49 +02:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
2024-02-29 18:26:55 +02:00
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run linter
|
|
|
|
run: npm run lint
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
|
|
|
- name: Run formatter
|
|
|
|
run: npm run format
|
|
|
|
if: ${{ !cancelled() }}
|
2024-02-13 20:08:49 +02:00
|
|
|
|
2024-03-10 01:18:25 +02:00
|
|
|
- name: Run tsc
|
|
|
|
run: npm run check
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
|
2024-02-13 20:08:49 +02:00
|
|
|
- name: Install Playwright Browsers
|
2024-02-29 16:22:25 +02:00
|
|
|
run: npx playwright install --with-deps chromium
|
2024-02-29 18:26:55 +02:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-13 20:08:49 +02:00
|
|
|
|
|
|
|
- name: Docker build
|
2024-02-19 19:03:51 +02:00
|
|
|
run: docker compose build
|
2024-02-29 18:26:55 +02:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-13 20:08:49 +02:00
|
|
|
|
2024-02-20 00:25:57 +02:00
|
|
|
- name: Run e2e tests (api & cli)
|
|
|
|
run: npm run test
|
2024-02-29 18:26:55 +02:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-19 19:03:51 +02:00
|
|
|
|
2024-02-20 00:25:57 +02:00
|
|
|
- name: Run e2e tests (web)
|
|
|
|
run: npx playwright test
|
2024-02-29 18:26:55 +02:00
|
|
|
if: ${{ !cancelled() }}
|
2024-02-19 19:03:51 +02:00
|
|
|
|
2023-01-25 18:10:04 +02:00
|
|
|
mobile-unit-tests:
|
2023-11-29 05:07:47 +02:00
|
|
|
name: Mobile
|
2023-01-25 18:10:04 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-06 03:50:22 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-01-25 18:10:04 +02:00
|
|
|
- name: Setup Flutter SDK
|
|
|
|
uses: subosito/flutter-action@v2
|
|
|
|
with:
|
2024-02-29 18:26:55 +02:00
|
|
|
channel: 'stable'
|
|
|
|
flutter-version: '3.16.9'
|
2023-01-25 18:10:04 +02:00
|
|
|
- name: Run tests
|
|
|
|
working-directory: ./mobile
|
2023-05-17 19:36:02 +02:00
|
|
|
run: flutter test -j 1
|
2023-01-25 18:10:04 +02:00
|
|
|
|
2023-06-28 01:21:33 +02:00
|
|
|
ml-unit-tests:
|
2023-11-29 05:07:47 +02:00
|
|
|
name: Machine Learning
|
2023-06-28 01:21:33 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./machine-learning
|
|
|
|
steps:
|
2023-09-06 03:50:22 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-28 01:21:33 +02:00
|
|
|
- name: Install poetry
|
|
|
|
run: pipx install poetry
|
2023-12-07 15:14:19 +02:00
|
|
|
- uses: actions/setup-python@v5
|
2023-06-28 01:21:33 +02:00
|
|
|
with:
|
|
|
|
python-version: 3.11
|
2024-02-29 18:26:55 +02:00
|
|
|
cache: 'poetry'
|
2023-06-28 01:21:33 +02:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2024-01-22 01:22:39 +02:00
|
|
|
poetry install --with dev --with cpu
|
2023-06-28 01:21:33 +02:00
|
|
|
- name: Lint with ruff
|
|
|
|
run: |
|
2023-12-26 05:37:48 +02:00
|
|
|
poetry run ruff check --output-format=github app export
|
2023-06-28 01:21:33 +02:00
|
|
|
- name: Check black formatting
|
|
|
|
run: |
|
2023-11-13 18:18:46 +02:00
|
|
|
poetry run black --check app export
|
2023-06-28 01:21:33 +02:00
|
|
|
- name: Run mypy type checking
|
|
|
|
run: |
|
2023-12-21 03:47:56 +02:00
|
|
|
poetry run mypy --install-types --non-interactive --strict app/
|
2023-06-28 01:21:33 +02:00
|
|
|
- name: Run tests and coverage
|
|
|
|
run: |
|
2024-02-12 00:58:56 +02:00
|
|
|
poetry run pytest app --cov=app --cov-report term-missing
|
2023-06-28 01:21:33 +02:00
|
|
|
|
2024-02-19 01:03:01 +02: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 18:44:53 +02:00
|
|
|
generated-api-up-to-date:
|
2023-11-29 05:07:47 +02:00
|
|
|
name: OpenAPI Clients
|
2023-02-19 18:44:53 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-06 03:50:22 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-02-19 18:44:53 +02:00
|
|
|
- name: Run API generation
|
2024-01-12 14:36:27 +02:00
|
|
|
run: make open-api
|
2023-02-19 18:44:53 +02:00
|
|
|
- name: Find file changes
|
2024-02-29 14:56:20 +02:00
|
|
|
uses: tj-actions/verify-changed-files@v19
|
2023-02-19 18:44:53 +02:00
|
|
|
id: verify-changed-files
|
|
|
|
with:
|
|
|
|
files: |
|
|
|
|
mobile/openapi
|
2024-01-12 14:36:27 +02:00
|
|
|
open-api/typescript-sdk
|
2023-02-19 18:44:53 +02: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-20 03:50:27 +02:00
|
|
|
generated-typeorm-migrations-up-to-date:
|
2023-11-30 17:10:30 +02:00
|
|
|
name: TypeORM Checks
|
2023-02-20 03:50:27 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
services:
|
|
|
|
postgres:
|
2024-02-13 03:01:03 +02:00
|
|
|
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
|
2023-02-20 03:50:27 +02: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 18:35:58 +02:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./server
|
|
|
|
|
2023-02-20 03:50:27 +02:00
|
|
|
steps:
|
2023-10-05 18:35:58 +02:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2023-02-20 03:50:27 +02:00
|
|
|
- name: Install server dependencies
|
2023-10-05 18:35:58 +02:00
|
|
|
run: npm ci
|
|
|
|
|
2023-11-30 17:10:30 +02:00
|
|
|
- name: Build the app
|
2023-10-05 18:35:58 +02:00
|
|
|
run: npm run build
|
|
|
|
|
2023-02-20 03:50:27 +02:00
|
|
|
- name: Run existing migrations
|
2023-10-05 18:35:58 +02:00
|
|
|
run: npm run typeorm:migrations:run
|
|
|
|
|
2023-12-29 20:41:33 +02:00
|
|
|
- name: Test npm run schema:reset command works
|
|
|
|
run: npm run typeorm:schema:reset
|
|
|
|
|
2023-02-20 03:50:27 +02:00
|
|
|
- name: Generate new migrations
|
|
|
|
continue-on-error: true
|
2023-10-05 18:35:58 +02:00
|
|
|
run: npm run typeorm:migrations:generate ./src/infra/migrations/TestMigration
|
|
|
|
|
2023-02-20 03:50:27 +02:00
|
|
|
- name: Find file changes
|
2024-02-29 14:56:20 +02:00
|
|
|
uses: tj-actions/verify-changed-files@v19
|
2023-02-20 03:50:27 +02:00
|
|
|
id: verify-changed-files
|
|
|
|
with:
|
|
|
|
files: |
|
2023-06-08 17:01:07 +02:00
|
|
|
server/src/infra/migrations/
|
2023-11-30 17:10:30 +02:00
|
|
|
- name: Verify migration files have not changed
|
2023-02-20 03:50:27 +02:00
|
|
|
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
|
|
run: |
|
2023-11-30 17:10:30 +02:00
|
|
|
echo "ERROR: Generated migration files not up to date!"
|
2023-02-20 03:50:27 +02:00
|
|
|
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}"
|
|
|
|
exit 1
|
|
|
|
|
2023-11-30 17:10:30 +02:00
|
|
|
- name: Run SQL generation
|
|
|
|
run: npm run sql:generate
|
2023-12-08 18:15:46 +02:00
|
|
|
env:
|
|
|
|
DB_URL: postgres://postgres:postgres@localhost:5432/immich
|
2023-11-30 17:10:30 +02:00
|
|
|
|
|
|
|
- name: Find file changes
|
2024-02-29 14:56:20 +02:00
|
|
|
uses: tj-actions/verify-changed-files@v19
|
2023-11-30 17:10:30 +02:00
|
|
|
id: verify-changed-sql-files
|
|
|
|
with:
|
|
|
|
files: |
|
|
|
|
server/src/infra/sql
|
|
|
|
|
|
|
|
- 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-17 05:15:12 +02:00
|
|
|
# mobile-integration-tests:
|
|
|
|
# name: Run mobile end-to-end integration tests
|
|
|
|
# runs-on: macos-latest
|
|
|
|
# steps:
|
2023-09-06 03:50:22 +02:00
|
|
|
# - uses: actions/checkout@v4
|
2023-03-17 05:15:12 +02: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
|