Skip to content

Commit

Permalink
Added Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hemish11 committed Dec 15, 2023
1 parent 27a9627 commit 225b0aa
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 42 deletions.
46 changes: 20 additions & 26 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,37 @@ jobs:
android:
runs-on: macos-latest
steps:

- name: Checkout Code
uses: actions/checkout@v3
# - name: Gradle cache
# uses: gradle/gradle-build-action@v2
- name: Checkout Code
uses: actions/checkout@v3

- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
# script: ./gradlew connectedCheck
timeout-minutes: 100
- name: Run Integration Tests
timeout-minutes: 100
run: flutter test integration_test --verbose



- name: Install Melos
run: dart pub global activate melos

- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
timeout-minutes: 100

- name: Run Integration Tests
timeout-minutes: 100
run: melos exec --fail-fast -- "flutter test integration_test --verbose"
# test:
# timeout-minutes: 100
# name: Execute Tests

# strategy:
# matrix:
# device:
# - iPhone 14 Pro Max
# fail-fast: true

# runs-on: macos-latest
# steps:

# - name: Checkout Code
# uses: actions/checkout@v3

# - name: Setup Flutter SDK
# uses: subosito/flutter-action@v2
# with:
Expand All @@ -53,17 +50,14 @@ jobs:

# # - name: Run Unit Tests / Widget Tests
# # run: flutter test

# - name: Start iOS Simulator
# id: simulator
# uses: futureware-tech/simulator-action@v2
# with:
# model: ${{ matrix.device }}

# - name: Run Integration Tests
# timeout-minutes: 100
# run: flutter test integration_test --verbose -d ${{steps.simulator.outputs.udid}}




33 changes: 17 additions & 16 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,27 @@ on:
branches: [main]

jobs:

runUnitTest:
name: Execute Unit/Widget tests

runs-on: macos-latest
steps:

- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: "stable"

- name: Install Melos
run: dart pub global activate melos

- name: Lint
run: dart format --output=none --set-exit-if-changed .
- name: Lint
run: melos exec --fail-fast -- "dart format --output=none --set-exit-if-changed ."

- name: Pub Upgrade
run: flutter pub upgrade
- name: Pub Upgrade
run: melos bootstrap

- name: Run Unit Tests / Widget Tests
run: flutter test
- name: Run Unit Tests / Widget Tests
run: melos exec --fail-fast -- "flutter test"

0 comments on commit 225b0aa

Please sign in to comment.