Skip to content

Commit

Permalink
ci: reorder jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Dec 6, 2024
1 parent b076b63 commit d76bb05
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,52 @@ jobs:
name: android-app
path: ./packages/react-native-app/android/app/build/outputs/apk/release/app-release.apk

test-android:
name: Test Android
needs: [build-android]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/react-native-app
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Maestro
run: |
curl -Ls "https://get.maestro.mobile.dev" | bash
echo "$HOME/.maestro/bin" >> "$GITHUB_PATH"
- name: Download Android App
uses: actions/download-artifact@v4
with:
name: android-app
path: ./packages/react-native-app/android/

- name: Check apk
run: |
ls -la
cd android
ls -la
- name: Test Android
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
working-directory: ./packages/react-native-app
script: |
adb install ./android/app-release.apk
maestro test ./e2e/show-map.yml --format junit
- name: Upload Android Report
if: always()
uses: actions/upload-artifact@v4
with:
name: Android Report
path: |
./packages/react-native-app/report.xml
~/.maestro/tests/**/*
build-ios:
name: Build iOS
needs: [lint-eslint, lint-tsc, test, codegen, build-library]
Expand Down Expand Up @@ -186,52 +232,6 @@ jobs:
!./packages/react-native-app/ios/build/Build/Products/Release-iphonesimulator/**
./packages/react-native-app/ios/build/Build/Products/Release-iphonesimulator/MapLibreReactNativeExample.app
test-android:
name: Test Android
needs: [build-android]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/react-native-app
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Maestro
run: |
curl -Ls "https://get.maestro.mobile.dev" | bash
echo "$HOME/.maestro/bin" >> "$GITHUB_PATH"
- name: Download Android App
uses: actions/download-artifact@v4
with:
name: android-app
path: ./packages/react-native-app/android/

- name: Check apk
run: |
ls -la
cd android
ls -la
- name: Test Android
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
working-directory: ./packages/react-native-app
script: |
adb install ./android/app-release.apk
maestro test ./e2e/show-map.yml --format junit
- name: Upload Android Report
if: always()
uses: actions/upload-artifact@v4
with:
name: Android Report
path: |
./packages/react-native-app/report.xml
~/.maestro/tests/**/*
test-ios:
name: Test iOS
needs: [build-ios]
Expand Down

0 comments on commit d76bb05

Please sign in to comment.