Skip to content

Commit 6c80176

Browse files
Merge pull request #32 from amanshuraikwar/update-tests
update tests
2 parents a46701a + b4ddd61 commit 6c80176

4 files changed

Lines changed: 29 additions & 23 deletions

File tree

.github/workflows/theme-data-tests-shared-android-jvm.yml renamed to .github/workflows/shared-tests-android-jvm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Theme Data Tests :shared Android/JVM
1+
name: :shared Tests Android/JVM
22

33
on:
44
workflow_dispatch:
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
java-version: 11
2020

21-
- name: Theme Data Tests
21+
- name: :shared Tests
2222
run: |
2323
cd project-files/Portfolio
2424
./gradlew :shared:cleanTestDebugUnitTest :shared:testDebugUnitTest

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,36 @@
66
       
77
![](https://github.com/amanshuraikwar/amanshuraikwar.github.io/actions/workflows/build-web-html-js.yml/badge.svg)
88
       
9-
<a href="https://amanshuraikwar.github.io/theme-data-tests-shared-android-jvm/">![](https://github.com/amanshuraikwar/amanshuraikwar.github.io/actions/workflows/theme-data-tests-shared-android-jvm.yml/badge.svg)</a>
9+
<a href="https://amanshuraikwar.github.io/tests/shared/android-jvm/">![](https://github.com/amanshuraikwar/amanshuraikwar.github.io/actions/workflows/shared-tests-android-jvm.yml/badge.svg)</a>
1010

1111
</p>
1212

13-
This is my portfolio. It is a KMM project which runs on Web, Android, iOS.
14-
15-
The business logic is written in Kotlin.
16-
17-
The Web app is written in Kotlin, built using Jetpack Compose for Web.
18-
19-
The Android app is written in Kotlin, built using Jetpack Compose.
20-
21-
The iOS app UI is written in Swift, built using Swift UI and it uses the KMM shared module for business logic.
13+
This is my portfolio. It is a KMM project which runs on Web, Android, iOS. The business logic is written in Kotlin. The Web app is written in Kotlin, built using Jetpack Compose for Web. The Android app is written in Kotlin, built using Jetpack Compose. The iOS app UI is written in Swift, built using Swift UI and it uses the KMM shared module for business logic.
2214

2315
## Building the Web App
2416

25-
Just run the kotlin script file buildWebsite.kts, it will spit out the built website in build/ folder. Make sure you have Kotlin 1.6.0 CLI and Java 11 installed.
17+
Just run the kotlin script file buildWebsite.kts, it will spit out the built website in build/ folder.
18+
19+
```
20+
kotlinc -script buildWebsite.kts
21+
```
2622

27-
Or, just run the Build Web HTML & JS Files workflow and download the artifacts.
23+
Make sure you have Kotlin 1.6.0 CLI and Java 11 installed. Or, just run the Build Web HTML & JS Files workflow and download the artifacts.
2824

2925
## Building the Android App
3026

31-
Coming soon...
27+
Run tests for shared module:
28+
```
29+
./gradlew :shared:cleanTestDebugUnitTest :shared:testDebugUnitTest
30+
```
3231

3332
## Building the iOS App
3433

3534
Coming soon...
3635

37-
## Get the Apps
36+
## Get the App
3837

3938
[Go to the Web App](https://amanshuraikwar.github.io)
4039

41-
# Special Thanks :)
40+
## Special Thanks :)
4241
Special thanks to [John O'Reilly's](https://github.com/joreilly) [People in Space repo](https://github.com/joreilly/PeopleInSpace), which I found extremely helpful for getting started with KMM.

project-files/Portfolio/buildWebsite.kts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,14 @@ File(".") exec "rm -rf build/home"
5353

5454
println("Running theme data tests in :shared for Android/JVM target...")
5555
File(".") exec "./gradlew :shared:cleanTestDebugUnitTest :shared:testDebugUnitTest"
56-
println("Creating directory build/theme-data-tests-shared-android-jvm...")
57-
File(".") exec "mkdir build/theme-data-tests-shared-android-jvm"
58-
println("Copying contents from shared/build/reports/tests/testDebugUnitTest/ to build/theme-data-tests-shared-android-jvm/...")
59-
File(".") exec "cp -R shared/build/reports/tests/testDebugUnitTest/ build/theme-data-tests-shared-android-jvm/"
56+
println("Creating directory build/tests...")
57+
File(".") exec "mkdir build/tests"
58+
println("Creating directory build/tests/shared...")
59+
File(".") exec "mkdir build/tests/shared"
60+
println("Creating directory build/tests/shared/android-jvm...")
61+
File(".") exec "mkdir build/tests/shared/android-jvm"
62+
println("Copying contents from shared/build/reports/tests/testDebugUnitTest/ to build/tests/shared/android-jvm/...")
63+
File(".") exec "cp -R shared/build/reports/tests/testDebugUnitTest/ build/tests/shared/android-jvm/"
6064

6165
data class BlogListEntry(
6266
val title: String,

project-files/Portfolio/markdown/portfolio.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# My Portfolio
2-
#Date December 11, 2021
2+
#Date December 25, 2021
33

44
This is my portfolio. It is a KMM project which runs on Web, Android, iOS. The business logic is written in Kotlin. The Web app is written in Kotlin, built using Jetpack Compose for Web. The Android app is written in Kotlin, built using Jetpack Compose. The iOS app UI is written in Swift, built using Swift UI and it uses the KMM shared module for business logic.
55

@@ -19,7 +19,10 @@ Coming soon...
1919

2020
### Building the iOS App
2121

22-
Coming soon...
22+
Run tests for shared module:
23+
```
24+
./gradlew :shared:cleanTestDebugUnitTest :shared:testDebugUnitTest
25+
```
2326

2427
### Get the App
2528

0 commit comments

Comments
 (0)