feat: Kotlin unit tests #1
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: unit tests | |
on: | |
pull_request: | |
branches: | |
- 'master' | |
push: | |
branches: | |
- 'master' | |
jobs: | |
tests-android: | |
name: Android Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
# Uncomment for locally running workflow w/ `act` | |
- name: Install yarn | |
run: npm install -g yarn | |
- name: Install node_modules | |
working-directory: example | |
run: yarn install && yarn rn-setup | |
- name: Use JDK 1.11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '11.0.22' | |
architecture: x64 | |
- name: Use Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Run Android unit tests | |
run: ./gradlew testDebugUnitTest --stacktrace --no-daemon | |
working-directory: lib/android |