Skip to content

Commit

Permalink
chore : add CI CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryOkafor committed Feb 18, 2024
1 parent 1f2f595 commit 78b1ddc
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 16 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ on:
push:
branches:
- main
paths-ignore:
- "Readme.md"
pull_request:
branches:
- main
paths-ignore:
- "Readme.md"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -44,8 +48,8 @@ jobs:
- name: Build iOS app
run: xcodebuild -allowProvisioningUpdates -project iosApp/iosApp.xcodeproj -configuration Debug -scheme iosApp -sdk iphoneos -destination name='iPhone 14' build

# - name: Run iOS unit tests
# run: xcodebuild -allowProvisioningUpdates -project iosApp/iosApp.xcodeproj -configuration Debug -scheme iosApp -sdk iphoneos -destination name='iPhone 14' test -test-timeouts-enabled YES
# - name: Run iOS unit tests
# run: xcodebuild -allowProvisioningUpdates -project iosApp/iosApp.xcodeproj -configuration Debug -scheme iosApp -sdk iphoneos -destination name='iPhone 14' test -test-timeouts-enabled YES

build-android:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -75,7 +79,10 @@ jobs:
${{ runner.os }}-konan-
- name: Build
run: ./gradlew :composeApp:assembleDebug
run: ./gradlew :composeApp:assemble

- name: Test Android
run: ./gradlew clean testDebugUnitTest -p composeApp/

build-desktop:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -105,6 +112,9 @@ jobs:
${{ runner.os }}-konan-
- name: Build
run: ./gradlew :composeApp:desktopJar -DmainClass=MainKt
run: ./gradlew :composeApp:assemble

- name: Test Desktop
run: ./gradlew clean desktopTest -p composeApp

# https://proandroiddev.com/optimising-ci-build-times-of-a-kotlin-multiplatform-project-2a430055f383
36 changes: 24 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,33 @@ This is a Kotlin Multiplatform project targeting Android, iOS, Web, Desktop.

* `/composeApp` is for code that will be shared across your Compose Multiplatform applications.
It contains several subfolders:
- `commonMain` is for code that’s common for all targets.
- Other folders are for Kotlin code that will be compiled for only the platform indicated in the folder name.
For example, if you want to use Apple’s CoreCrypto for the iOS part of your Kotlin app,
`iosMain` would be the right folder for such calls.
- `commonMain` is for code that’s common for all targets.
- Other folders are for Kotlin code that will be compiled for only the platform indicated in the
folder name.
For example, if you want to use Apple’s CoreCrypto for the iOS part of your Kotlin app,
`iosMain` would be the right folder for such calls.

* `/iosApp` contains iOS applications. Even if you’re sharing your UI with Compose Multiplatform,
you need this entry point for your iOS app. This is also where you should add SwiftUI code for your project.
* `/iosApp` contains iOS applications. Even if you’re sharing your UI with Compose Multiplatform,
you need this entry point for your iOS app. This is also where you should add SwiftUI code for
your project.


Learn more about [Kotlin Multiplatform](https://www.jetbrains.com/help/kotlin-multiplatform-dev/get-started.html),
Learn more
about [Kotlin Multiplatform](https://www.jetbrains.com/help/kotlin-multiplatform-dev/get-started.html),
[Compose Multiplatform](https://github.com/JetBrains/compose-multiplatform/#compose-multiplatform),
[Kotlin/Wasm](https://kotl.in/wasm/)

**Note:** Compose/Web is Experimental and may be changed at any time. Use it only for evaluation purposes.
We would appreciate your feedback on Compose/Web and Kotlin/Wasm in the public Slack channel [#compose-web](https://slack-chats.kotlinlang.org/c/compose-web).
If you face any issues, please report them on [GitHub](https://github.com/JetBrains/compose-multiplatform/issues).
**Note:** Compose/Web is Experimental and may be changed at any time. Use it only for evaluation
purposes.
We would appreciate your feedback on Compose/Web and Kotlin/Wasm in the public Slack
channel [#compose-web](https://slack-chats.kotlinlang.org/c/compose-web).
If you face any issues, please report them
on [GitHub](https://github.com/JetBrains/compose-multiplatform/issues).

You can open the web application by running the `:composeApp:wasmJsBrowserDevelopmentRun` Gradle
task.

## Todo

You can open the web application by running the `:composeApp:wasmJsBrowserDevelopmentRun` Gradle task.
- [ ] Add KtLint and Detekt
- [ ] Add Detekt
- [ ] Add SQL Delight to track access and refresh tokens for channels.

0 comments on commit 78b1ddc

Please sign in to comment.