fix(ios): remove broken pre_install hook #60
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 | ||
|
Check failure on line 1 in .github/workflows/ci.yml
|
||
| on: | ||
| push: | ||
| branches: [main, develop] | ||
| pull_request: | ||
| branches: [main, develop] | ||
| jobs: | ||
| build-and-test: | ||
| runs-on: macos-latest | ||
| strategy: | ||
| matrix: | ||
| platform: [ios, android] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20.19.0" | ||
| cache: "npm" | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - name: Setup Ruby and CocoaPods (iOS only) | ||
| if: matrix.platform == 'ios' | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "2.7" | ||
| - name: Install CocoaPods (iOS only) | ||
| if: matrix.platform == 'ios' | ||
| run: | | ||
| cd ios | ||
| pod install | ||
| cd .. | ||
| - name: Setup Java (Android only) | ||
| if: matrix.platform == 'android' | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: "temurin" | ||
| java-version: "17" | ||
| cache: "gradle" | ||
| - name: Setup Android SDK (Android only) | ||
| if: matrix.platform == 'android' | ||
| uses: AndroidSetup@v1 | ||
| with: | ||
| api-level: 34 | ||
| - name: Run linting | ||
| run: npm run lint | ||
| - name: Run TypeScript check | ||
| run: npm run tsc | ||
| - name: Run unit tests | ||
| run: npm run test:ci | ||
| - name: Build app (iOS) | ||
| if: matrix.platform == 'ios' | ||
| run: npm run detox:build:ios | ||
| - name: Build app (Android) | ||
| if: matrix.platform == 'android' | ||
| run: npm run detox:build:android | ||
| - name: Run E2E tests (iOS) | ||
| if: matrix.platform == 'ios' | ||
| run: npm run detox:test -- --configuration ios.sim | ||
| - name: Run E2E tests (Android) | ||
| if: matrix.platform == 'android' | ||
| run: npm run detox:test -- --configuration android.emu | ||
| - name: Upload test results | ||
| if: always() | ||
| uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: test-results-${{ matrix.platform }} | ||
| path: | | ||
| ./reports/ | ||
| ./e2e/screenshots/ | ||
| ./coverage/ | ||