Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create kmm_generate_apk.yml #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/kmm_generate_apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Kmm production sample Build and Test

on:
push:
branches:
- main

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'

- name: Set up Kotlin
uses: actions/setup-kotlin@v1
lkant8 marked this conversation as resolved.
Show resolved Hide resolved
with:
kotlin-version: '1.8.20'

- name: Build and Test
run: |
./gradlew :shared:build
./gradlew :androidApp:testDebug

- name: Build Android APK
run: ./gradlew :androidApp:assembleDebug # assembled apk

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: |
shared/build
androidApp/build/reports/tests/testDebugUnitTest