Repository navigation
113 lines (113 loc) · 4.13 KB
/
Copy pathcheck.yml
File metadata and controls
113 lines (113 loc) · 4.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Native mobile checks
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
contracts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: pnpm/action-setup@v4
with:
version: 10.15.0
- run: pnpm install --frozen-lockfile
- run: pnpm run prepare:assets
- run: pnpm run check
- run: pnpm run harmony:genui-runtime
- run: pnpm run harmony:genui-runtime:check
- run: pnpm run test:harmony
- run: pnpm run test:miniapps
- run: pnpm run test:brand
- run: node --test tests/mobile-package.test.mjs
- run: pnpm run test:browser
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: pnpm/action-setup@v4
with:
version: 10.15.0
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
- uses: gradle/actions/setup-gradle@v4
- run: pnpm install --frozen-lockfile
- run: pnpm run prepare:assets
- run: ./gradlew jvmTest --no-daemon
working-directory: src/apps/mobile/shared
- run: ./gradlew :app:assembleDebug :app:testDebugUnitTest --no-daemon
working-directory: src/apps/mobile/android
- uses: actions/upload-artifact@v6
if: failure()
with:
name: android-test-reports
path: |
src/apps/mobile/shared/*/build/test-results/
src/apps/mobile/android/app/build/test-results/
if-no-files-found: ignore
ios:
runs-on: macos-26
env:
DEVELOPER_DIR: /Applications/Xcode_26.5.app/Contents/Developer
steps:
- uses: actions/checkout@v5
- name: Create iPhone simulator
run: |
xcodebuild -version
xcrun simctl list runtimes
simulator_id=$(xcrun simctl create 'OpenBitFun CI' \
com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro-Max \
com.apple.CoreSimulator.SimRuntime.iOS-26-5)
echo "IOS_SIMULATOR_DESTINATION=platform=iOS Simulator,id=$simulator_id" >> "$GITHUB_ENV"
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: pnpm/action-setup@v4
with:
version: 10.15.0
- run: pnpm install --frozen-lockfile
- run: pnpm run prepare:assets
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
- uses: gradle/actions/setup-gradle@v4
- name: Build shared iOS XCFramework
run: ./gradlew compileKotlinIosSimulatorArm64 :core-feature:assembleOpenBitFunMobileCoreDebugXCFramework --no-daemon
working-directory: src/apps/mobile/shared
- run: ./Testing/run-pure-swift-tests.sh
working-directory: src/apps/mobile/ios
- name: Build iOS app and UI tests
working-directory: src/apps/mobile/ios
run: |
xcodebuild -project OpenBitFun.xcodeproj -scheme OpenBitFun -configuration Debug \
-destination "$IOS_SIMULATOR_DESTINATION" \
-derivedDataPath "$RUNNER_TEMP/OpenBitFunDerivedData" \
build-for-testing
- name: Run StreamingPresentationUITests
working-directory: src/apps/mobile/ios
run: |
xcodebuild -project OpenBitFun.xcodeproj -scheme OpenBitFun -configuration Debug \
-destination "$IOS_SIMULATOR_DESTINATION" \
-derivedDataPath "$RUNNER_TEMP/OpenBitFunDerivedData" \
-resultBundlePath "$RUNNER_TEMP/StreamingPresentationUITests.xcresult" \
-parallel-testing-enabled NO -testLanguage zh-Hans -testRegion CN \
-only-testing:OpenBitFunUITests/StreamingPresentationUITests \
test-without-building
- name: Upload iOS UI test results on failure
if: failure()
uses: actions/upload-artifact@v6
with:
name: ios-streaming-ui-test-results
path: ${{ runner.temp }}/StreamingPresentationUITests.xcresult
if-no-files-found: ignore