devbox install after checkout #1288
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: CI | |
| on: | |
| push: | |
| branches: [master, beta, ci] | |
| pull_request: | |
| branches: [master, beta, ci] | |
| workflow_dispatch: | |
| jobs: | |
| cancel_previous: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: styfle/cancel-workflow-action@0.12.1 | |
| with: | |
| workflow_id: ${{ github.event.workflow.id }} | |
| run-e2e-ios: | |
| runs-on: 'macos-15' | |
| env: | |
| YARN_ENABLE_HARDENED_MODE: 0 | |
| steps: | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '26.2' | |
| - name: Install applesimutils | |
| env: | |
| HOMEBREW_NO_AUTO_UPDATE: 1 | |
| run: | | |
| brew tap wix/brew >/dev/null | |
| brew install applesimutils >/dev/null | |
| - uses: actions/checkout@v4 | |
| - name: Install devbox | |
| uses: jetify-com/devbox-install-action@v0.12.0 | |
| with: | |
| enable-cache: 'true' | |
| - name: IOS E2E Test | |
| env: | |
| EXCLUDED_ARCHS: "x86_64" | |
| run: devbox run test-ios | |
| run-e2e-android: | |
| runs-on: 'ubuntu-latest' | |
| strategy: | |
| matrix: | |
| api-level: [21] | |
| profile: ['pixel_xl'] | |
| env: | |
| YARN_ENABLE_HARDENED_MODE: 0 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Enable KVM group perms | |
| run: | | |
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --name-match=kvm | |
| - name: Gradle cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | |
| - name: AVD cache | |
| uses: actions/cache@v4 | |
| id: avd-cache | |
| with: | |
| path: | | |
| ~/.android/avd/* | |
| ~/.android/adb* | |
| key: avd-${{ matrix.api-level }}-${{matrix.profile}} | |
| - name: create AVD and generate snapshot for caching | |
| if: steps.avd-cache.outputs.cache-hit != 'true' | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| with: | |
| api-level: ${{ matrix.api-level }} | |
| profile: ${{matrix.profile}} | |
| avd-name: Pixel_API_21_AOSP | |
| target: default | |
| force-avd-creation: false | |
| emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
| disable-animations: false | |
| script: echo "Generated AVD snapshot for caching." | |
| - name: Install devbox | |
| uses: jetify-com/devbox-install-action@v0.12.0 | |
| with: | |
| enable-cache: 'true' | |
| - name: Detox - Test | |
| uses: ReactiveCircus/android-emulator-runner@v2.35.0 | |
| with: | |
| api-level: ${{ matrix.api-level }} | |
| profile: ${{matrix.profile}} | |
| avd-name: Pixel_API_21_AOSP | |
| target: default | |
| force-avd-creation: false | |
| emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
| disable-animations: true | |
| script: devbox run test-android |