Skip to content

Commit

Permalink
ci: create local.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Feb 23, 2024
1 parent c292d19 commit 3f6cf29
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,25 @@ jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- uses: actions/checkout@v3

- name: Generate local.properties
run: |
echo "flutter.sdk=$(flutter sdk-path)" > example/android/local.properties
echo "sdk.dir=${ANDROID_HOME}" >> example/android/local.properties
echo "flutter.buildMode=debug" >> example/android/local.properties
- name: Unit Test
run: cd example/android && ./gradlew testDebugUnitTest

0 comments on commit 3f6cf29

Please sign in to comment.