Create github actions #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Setup Flutter SDK | |
uses: flutter-actions/setup-flutter@v4 | |
with: | |
channel: stable | |
version: 3.27. | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Set up local.properties | |
run: | | |
echo "sdk.dir=$HOME/Library/Android/sdk" > ./example/android/local.properties | |
whereis flutter | |
echo "flutter.sdk=$RUNNER_SDK_PATH" >> ./example/android/local.properties | |
echo "flutter.buildMode=debug" >> ./example/android/local.properties | |
- name: Build and test | |
run: ./example/android/gradlew testDebug -p ./example/android/ |