update ios library to 24.4.0 #584
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unit Tests | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: ['**'] | |
| jobs: | |
| test-ios: | |
| name: unit-test-ios | |
| runs-on: macos-13 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: Get yarn cache directory path | |
| id: yarn-cache-dir-path | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - uses: actions/cache@v2 | |
| id: yarn-cache | |
| with: | |
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - uses: actions/cache@v2 | |
| with: | |
| path: example/ios/Pods | |
| key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pods- | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v2.1.5 | |
| with: | |
| node-version: 16 | |
| - name: Install React Native CLI | |
| run: npm install react-native-cli | |
| - name: Install Dependencies | |
| run: yarn bootstrap | |
| - name: Run tests | |
| run: yarn test:unit:ios | |
| test-android: | |
| name: unit-test-android | |
| runs-on: macos-13 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: Get yarn cache directory path | |
| id: yarn-cache-dir-path | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - uses: actions/cache@v2 | |
| id: yarn-cache | |
| with: | |
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v2.1.5 | |
| with: | |
| node-version: 16 | |
| - name: Install React Native CLI | |
| run: npm install react-native-cli | |
| - name: Install Dependencies | |
| run: yarn bootstrap-no-pods | |
| - name: Setup Java environment | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| - name: Gradle cache | |
| uses: actions/cache@v2 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | |
| - name: Run tests | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| with: | |
| api-level: 29 | |
| arch: x86_64 | |
| profile: Galaxy Nexus | |
| target: google_apis | |
| force-avd-creation: false | |
| disable-animations: true | |
| cores: 3 | |
| ram-size: 8192M | |
| script: | | |
| yarn test:unit:android |