diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml new file mode 100644 index 0000000..f34b7c4 --- /dev/null +++ b/.github/workflows/android-ci.yml @@ -0,0 +1,16 @@ +name: Android Bridge Unit Test + +on: [pull_request] + +jobs: + test: + runs-on: ubuntu-20.04 + steps: + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - uses: actions/checkout@v3 + - name: Unit Test + run: cd android && ./gradlew testDebugUnitTest \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5c9f67..32baed5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Test and Lint +name: Flutter Test and Lint on: [pull_request] diff --git a/android/build.gradle b/android/build.gradle index 2d781e7..105f498 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -51,5 +51,13 @@ dependencies { testImplementation "io.mockk:mockk:1.12.4" testImplementation "io.mockk:mockk-agent-jvm:1.11.0" testImplementation('junit:junit:4.13') + testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.7.2") testImplementation 'org.robolectric:robolectric:4.8.2' } + +tasks.withType(Test) { + useJUnitPlatform() + testLogging { + showStandardStreams = true + } +}