|
13 | 13 | steps: |
14 | 14 | - name: "Checkout" |
15 | 15 | uses: actions/checkout@v4 |
16 | | - - uses: actions/setup-node@master |
| 16 | + - uses: actions/setup-node@v4.4.0 |
17 | 17 | with: |
18 | 18 | node-version: 18 |
19 | 19 | cache: yarn |
|
57 | 57 | working-directory: android |
58 | 58 | run: ./gradlew ktlintCheck |
59 | 59 |
|
| 60 | + android-sample-app: |
| 61 | + name: Android Sample App |
| 62 | + runs-on: ubuntu-latest |
| 63 | + steps: |
| 64 | + - name: Checkout |
| 65 | + uses: actions/checkout@v4 |
| 66 | + |
| 67 | + with: |
| 68 | + node-version: 18 |
| 69 | + cache: yarn |
| 70 | + cache-dependency-path: yarn.lock |
| 71 | + |
| 72 | + - name: Install node modules |
| 73 | + run: yarn install |
| 74 | + |
| 75 | + - name: Build package |
| 76 | + run: yarn dev:pack |
| 77 | + |
| 78 | + - name: Install sample app dependencies |
| 79 | + working-directory: sample |
| 80 | + run: | |
| 81 | + rm -f yarn.lock |
| 82 | + yarn install |
| 83 | +
|
| 84 | + - name: Run Android sample app |
| 85 | + working-directory: sample/android |
| 86 | + run: ./gradlew assembleDebug |
| 87 | + |
| 88 | + ios-sample-app: |
| 89 | + name: iOS Sample App |
| 90 | + runs-on: macos-latest |
| 91 | + steps: |
| 92 | + - name: Checkout |
| 93 | + uses: actions/checkout@v4 |
| 94 | + |
| 95 | + with: |
| 96 | + node-version: 18 |
| 97 | + cache: yarn |
| 98 | + cache-dependency-path: yarn.lock |
| 99 | + |
| 100 | + - name: Install node modules |
| 101 | + run: yarn install |
| 102 | + |
| 103 | + - name: Build package |
| 104 | + run: yarn dev:pack |
| 105 | + |
| 106 | + - name: Install sample app dependencies |
| 107 | + working-directory: sample |
| 108 | + run: | |
| 109 | + rm -f yarn.lock |
| 110 | + yarn install |
| 111 | +
|
| 112 | + - name: Install Ruby dependencies |
| 113 | + working-directory: sample |
| 114 | + run: bundle install |
| 115 | + |
| 116 | + - name: Run iOS sample app |
| 117 | + working-directory: sample/ios |
| 118 | + run: | |
| 119 | + bundle exec pod install |
| 120 | + set -o pipefail && xcodebuild -workspace MParticleSample.xcworkspace \ |
| 121 | + -configuration Debug \ |
| 122 | + -scheme MParticleSample \ |
| 123 | + -destination 'platform=iOS Simulator,name=iPhone 15' \ |
| 124 | + -derivedDataPath ios/build \ |
| 125 | + -UseModernBuildSystem=YES \ |
| 126 | + build | bundle exec xcpretty -k |
| 127 | +
|
60 | 128 | automerge-dependabot: |
61 | 129 | name: "Save PR Number for Dependabot Automerge" |
62 | 130 | needs: [ js-tests, android-unit-tests, android-lint, android-kotlin-lint ] |
|
0 commit comments