|
6 | 6 | pull_request: |
7 | 7 | branches: [main] |
8 | 8 |
|
| 9 | +concurrency: |
| 10 | + group: pr-${{ github.event.pull_request.number }} |
| 11 | + cancel-in-progress: true |
| 12 | + |
9 | 13 | jobs: |
10 | | - lint: |
| 14 | + build-lint: |
| 15 | + name: Build & static code analysis |
11 | 16 | runs-on: ubuntu-latest |
12 | 17 | steps: |
13 | 18 | - name: Checkout |
14 | | - uses: actions/checkout@v4 |
| 19 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 |
15 | 20 |
|
16 | 21 | - name: Setup |
17 | 22 | uses: ./.github/actions/setup |
18 | 23 |
|
19 | | - - name: Build package |
| 24 | + - name: Build packages |
20 | 25 | run: yarn build |
21 | 26 |
|
22 | 27 | - name: Lint files |
23 | 28 | run: yarn lint |
24 | 29 |
|
25 | 30 | - name: Typecheck files |
26 | 31 | run: yarn typecheck |
| 32 | + |
| 33 | + tester-android: |
| 34 | + name: Integrated tester Android App |
| 35 | + runs-on: ubuntu-latest |
| 36 | + needs: build-lint |
| 37 | + |
| 38 | + steps: |
| 39 | + - name: Checkout |
| 40 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 |
| 41 | + |
| 42 | + - name: Validate Gradle Wrapper |
| 43 | + uses: gradle/actions/wrapper-validation@6f229686ee4375cc4a86b2514c89bac4930e82c4 # v5 |
| 44 | + |
| 45 | + - name: Setup Java |
| 46 | + uses: actions/setup-java@5d7b2146334bacf88728daaa70414a99f5164e0f # v5 |
| 47 | + with: |
| 48 | + distribution: 'zulu' |
| 49 | + java-version: '17' |
| 50 | + |
| 51 | + - name: Setup Node.js |
| 52 | + uses: actions/setup-node@65d868f8d4d85d7d4abb7de0875cde3fcc8798f5 # v6 |
| 53 | + with: |
| 54 | + node-version: 'lts/*' |
| 55 | + cache: 'yarn' |
| 56 | + |
| 57 | + - name: Install dependencies |
| 58 | + run: yarn install |
| 59 | + |
| 60 | + - name: Build packages |
| 61 | + run: yarn build |
| 62 | + |
| 63 | + - name: Restore android build cache |
| 64 | + uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5 |
| 65 | + with: |
| 66 | + path: | |
| 67 | + apps/TesterIntegrated/kotlin/build |
| 68 | + apps/TesterIntegrated/kotlin/app/.cxx |
| 69 | + apps/TesterIntegrated/kotlin/app/build |
| 70 | + key: ${{ runner.os }}-tester-android-build-${{ github.sha }} |
| 71 | + restore-keys: | |
| 72 | + ${{ runner.os }}-tester-android-build- |
| 73 | +
|
| 74 | + - name: Resture Gradle cache |
| 75 | + uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5 |
| 76 | + with: |
| 77 | + path: | |
| 78 | + ~/.gradle/caches |
| 79 | + ~/.gradle/wrapper |
| 80 | + key: ${{ runner.os }}-tester-integrated-android-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} |
| 81 | + restore-keys: | |
| 82 | + ${{ runner.os }}-tester-integrated-android-gradle- |
| 83 | +
|
| 84 | + - name: Build integrated Android tester app |
| 85 | + run: yarn run build:tester-integrated:android |
| 86 | + |
| 87 | + tester-ios: |
| 88 | + name: Integrated tester iOS App |
| 89 | + runs-on: macos-latest |
| 90 | + needs: build-lint |
| 91 | + |
| 92 | + steps: |
| 93 | + - name: Checkout |
| 94 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 |
| 95 | + |
| 96 | + - name: Use appropriate Xcode version |
| 97 | + uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0 |
| 98 | + with: |
| 99 | + xcode-version: '16' |
| 100 | + |
| 101 | + - name: Setup Node.js |
| 102 | + uses: actions/setup-node@65d868f8d4d85d7d4abb7de0875cde3fcc8798f5 # v6 |
| 103 | + with: |
| 104 | + node-version: 'lts/*' |
| 105 | + cache: 'yarn' |
| 106 | + |
| 107 | + - name: Setup Ruby |
| 108 | + uses: ruby/setup-ruby@5dd816ae0186f20dfa905997a64104db9a8221c7 # v1.280.0 |
| 109 | + with: |
| 110 | + ruby-version: '3.2' |
| 111 | + bundler-cache: true |
| 112 | + |
| 113 | + - name: Install dependencies |
| 114 | + run: yarn install |
| 115 | + |
| 116 | + - name: Build packages |
| 117 | + run: yarn build |
| 118 | + |
| 119 | + - name: Restore Pods cache |
| 120 | + uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5 |
| 121 | + with: |
| 122 | + path: | |
| 123 | + apps/TesterIntegrated/swift/Pods |
| 124 | + key: ${{ runner.os }}-tester-ios-pods-${{ hashFiles('apps/TesterIntegrated/swift/Podfile.lock') }} |
| 125 | + restore-keys: | |
| 126 | + ${{ runner.os }}-tester-ios-pods- |
| 127 | +
|
| 128 | + - name: Install pods |
| 129 | + run: | |
| 130 | + cd apps/TesterIntegrated/swift |
| 131 | + pod install |
| 132 | +
|
| 133 | + - name: Build integrated iOS tester app |
| 134 | + run: | |
| 135 | + yarn run build:tester-integrated:ios |
0 commit comments