Skip to content

fix(android): simplify settings.gradle #51

fix(android): simplify settings.gradle

fix(android): simplify settings.gradle #51

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 51, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'AndroidSetup@v1'
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/