Repository navigation
feat: refresh example app design #610
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: iOS Build | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - '.github/workflows/ios.yml' | |
| - 'ios/**' | |
| - 'src/**' | |
| - 'example/ios/**' | |
| - 'example/src/**' | |
| - 'e2e/**' | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| ios-build: | |
| runs-on: macos-26 | |
| timeout-minutes: 60 | |
| concurrency: | |
| group: ${{ github.ref }}-ios | |
| cancel-in-progress: true | |
| steps: | |
| - uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2 | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Install dependencies | |
| shell: bash | |
| run: bun install | |
| - name: Install example dependencies | |
| shell: bash | |
| run: bun install | |
| working-directory: example | |
| - name: Cache Pods | |
| id: cache-pods | |
| uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | |
| env: | |
| cache-name: cached-ios-pods-deps | |
| with: | |
| path: example/ios/Pods | |
| key: ${{ hashFiles('example/ios/Podfile.lock') }} | |
| - name: Install example Pods | |
| run: bun pods | |
| working-directory: example | |
| # Simulator.app attaches the Mac keyboard by default, which hides the | |
| # software keyboard and leaves no Return key for the keyboard tests. | |
| - name: Detach hardware keyboard from simulator | |
| run: defaults write com.apple.iphonesimulator ConnectHardwareKeyboard -bool false | |
| - name: Build iOS App | |
| run: | | |
| bun example:ios:release | |
| - name: Install e2e dependencies | |
| run: bun install | |
| working-directory: e2e | |
| - name: Run e2e tests | |
| run: bun run test:ios | |
| working-directory: e2e | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload e2e report | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: e2e-report-ios | |
| path: | | |
| e2e/.e2e/report.json | |
| e2e/.e2e/artifacts | |
| if-no-files-found: warn | |
| retention-days: 7 |