Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions .github/workflows/flutter-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Flutter CI
name: Flutter Android

on:
pull_request:
Expand All @@ -15,7 +15,7 @@ on:

jobs:
flutter_test:
name: flutter test
name: e2e Tests
defaults:
run:
working-directory: ./mobile-app
Expand Down Expand Up @@ -100,15 +100,6 @@ jobs:
- name: Install packages
run: flutter pub get

- name: Analyze code
run: flutter analyze

- name: Run unit tests
run: |
cd test
flutter test unit
flutter test services

- name: Run tests in emulator
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # v2
with:
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/flutter-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,6 @@ jobs:
- name: Install packages
run: flutter pub get

- name: Analyze code
run: flutter analyze

- name: Run unit tests
run: |
cd test
flutter test unit
flutter test services

- name: Run tests in emulator
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # v2
with:
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/flutter-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Flutter Unit Tests

on:
pull_request:
branches: [main, prod]
paths:
- "mobile-app/**"
- ".github/**"
push:
branches: [main, prod]

jobs:
unit-tests:
name: Analyze and Run Unit Tests
defaults:
run:
working-directory: ./mobile-app
runs-on: ubuntu-latest
steps:
- name: Checkout files
uses: actions/checkout@v4

- name: Setup Flutter 3.32.x
uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 # v2
with:
flutter-version: "3.32.x"
channel: "stable"
cache: true
cache-key: flutter-3.32.x
cache-path: ${{ runner.tool_cache }}/flutter

- name: Create .env file
run: |
echo "HASHNODE_PUBLICATION_ID=$HASHNODE_PUBLICATION_ID" > .env
echo "ALGOLIAAPPID=$ALGOLIA_APP_ID" >> .env
echo "ALGOLIAKEY=$ALGOLIA_KEY" >> .env
echo "AUTH0_DOMAIN=$AUTH0_DOMAIN" >> .env
echo "AUTH0_CLIENT_ID=$AUTH0_CLIENT_ID" >> .env
env:
HASHNODE_PUBLICATION_ID: ${{ secrets.HASHNODE_PUBLICATION_ID }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_KEY: ${{ secrets.ALGOLIA_KEY }}
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}

- name: Install packages
run: flutter pub get

- name: Analyze code
run: flutter analyze

- name: Run unit tests
run: |
cd test
flutter test unit
flutter test services
2 changes: 1 addition & 1 deletion codemagic.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
workflows:
flutter-ios-ci:
name: Flutter iOS CI
name: Flutter iOS e2e Tests
instance_type: mac_mini_m2
max_build_duration: 30

Expand Down
Loading