From 83030a155d38b65838d613d1ebd047d8b7245dd1 Mon Sep 17 00:00:00 2001 From: Jason Elie Bou Kheir <5115126+jasonboukheir@users.noreply.github.com> Date: Thu, 21 Mar 2024 09:25:13 -0700 Subject: [PATCH] test(android): add github action workflow step for unit tests (#4177) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #2309 Not sure how to test the workflow itself in this PR 🤔 --------- Signed-off-by: Jason Elie Bou Kheir <5115126+jasonboukheir@users.noreply.github.com> Co-authored-by: Jamil --- .github/workflows/_kotlin.yml | 1 - .../test/java/dev/firezone/android/core/SampleTest.kt | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 kotlin/android/app/src/test/java/dev/firezone/android/core/SampleTest.kt diff --git a/.github/workflows/_kotlin.yml b/.github/workflows/_kotlin.yml index 8ab964ed4..3343da6a1 100644 --- a/.github/workflows/_kotlin.yml +++ b/.github/workflows/_kotlin.yml @@ -62,7 +62,6 @@ jobs: - name: Run Test run: | # TODO: See https://github.com/firezone/firezone/issues/2311 - # TODO: See https://github.com/firezone/firezone/issues/2309 ./gradlew testReleaseUnitTest - name: Upload app bundle uses: actions/upload-artifact@v4 diff --git a/kotlin/android/app/src/test/java/dev/firezone/android/core/SampleTest.kt b/kotlin/android/app/src/test/java/dev/firezone/android/core/SampleTest.kt new file mode 100644 index 000000000..2e82ae782 --- /dev/null +++ b/kotlin/android/app/src/test/java/dev/firezone/android/core/SampleTest.kt @@ -0,0 +1,11 @@ +/* Licensed under Apache 2.0 (C) 2024 Firezone, Inc. */ +package dev.firezone.android.core + +import org.junit.Assert.assertTrue +import org.junit.Test + +class SampleTest { + @Test fun `test should pass`() { + assertTrue(true) + } +}