Skip to content

Commit b3e8cbc

Browse files
committed
ci: run shared storage tests on PR
1 parent e183197 commit b3e8cbc

File tree

2 files changed

+28
-5
lines changed
  • .github/workflows
  • examples/compose/src/commonMain/kotlin/org/asyncstorage/example/sharedstorage

2 files changed

+28
-5
lines changed

.github/workflows/pull-request.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,31 @@ jobs:
1717
run: yarn
1818
- name: test ${{ matrix.test-name }}
1919
run: yarn test:${{ matrix.test-name }}
20+
21+
shared-storage-tests:
22+
name: shared-storage tests
23+
runs-on: ${{ matrix.os }}
24+
strategy:
25+
matrix:
26+
os: [macos-15-xlarge, ubuntu-24.04]
27+
testName:
28+
[cleanTestAndroidHostTest, macosArm64Test, iosSimulatorArm64Test]
29+
exclude:
30+
- testName: cleanTestAndroidHostTest
31+
os: macos-15-xlarge
32+
- testName: macosArm64Test
33+
os: ubuntu-24.04
34+
- testName: iosSimulatorArm64Test
35+
os: ubuntu-24.04
36+
37+
steps:
38+
- uses: actions/checkout@v5
39+
- uses: actions/setup-java@v5
40+
with:
41+
distribution: "temurin"
42+
java-version: "21"
43+
- name: Setup Gradle
44+
uses: gradle/actions/setup-gradle@v5
45+
- name: Run test ${{ matrix.testName }}
46+
run: |
47+
./gradlew ${{ matrix.testName }}

examples/compose/src/commonMain/kotlin/org/asyncstorage/example/sharedstorage/App.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.asyncstorage.example.sharedstorage
22

33
import androidx.compose.animation.AnimatedVisibility
4-
import androidx.compose.foundation.Image
54
import androidx.compose.foundation.background
65
import androidx.compose.foundation.layout.Column
76
import androidx.compose.foundation.layout.fillMaxSize
@@ -13,10 +12,7 @@ import androidx.compose.material3.Text
1312
import androidx.compose.runtime.*
1413
import androidx.compose.ui.Alignment
1514
import androidx.compose.ui.Modifier
16-
import org.jetbrains.compose.resources.painterResource
1715
import org.jetbrains.compose.ui.tooling.preview.Preview
18-
import rnasyncstorage.examples.example_compose.generated.resources.Res
19-
import rnasyncstorage.examples.example_compose.generated.resources.compose_multiplatform
2016

2117
@Composable
2218
@Preview
@@ -36,7 +32,6 @@ fun App() {
3632
modifier = Modifier.fillMaxWidth(),
3733
horizontalAlignment = Alignment.CenterHorizontally,
3834
) {
39-
Image(painterResource(Res.drawable.compose_multiplatform), null)
4035
Text("Hello world")
4136
}
4237
}

0 commit comments

Comments
 (0)