From 5ce6cc110bcbcc597cfd03fa8c406e563fe96a85 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Fri, 7 Oct 2022 21:04:32 -0700 Subject: [PATCH] Add Android unit tests to CI --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac31227..6549871 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,3 +46,35 @@ jobs: -testPlan DeviceTests \ -destination "platform=iOS Simulator,name=iPhone 13" working-directory: ./tests/ios + + + test-android: + name: "Android Tests" + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Use Java + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + + - name: Set up example app + run: | + npm i + npx cordova prepare android + working-directory: ./example + + - name: Run Android Unit Tests + uses: gradle/gradle-build-action@v2 + with: + gradle-version: 7.5.1 + arguments: test + build-root-directory: ./tests/android