-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add flashlist * e2e fix(1) * e2e fix(2) bundle install fix * e2e fix(2) bundle install fix * e2e fix(3) install java version 17 * e2e fix(3) install java version 17 * remove test warnings * increase to api-level 33 e2e test * maestro cloud addition to e2e testing in ci/cd * maestro cloud addition to e2e testing in ci/cd 2 * maestro cloud addition to e2e testing in ci/cd 3 * maestro cloud addition to e2e testing in ci/cd 4 * create .gradle folder and global properties * correct working folder for android activities * correct working folder for android activities * correct working folder for android activities * correct app-file * correct app-file * initial build_ios + correct app-file destin. * initial build_ios + correct app-file destin. * correct xcode version * correct xcode version * correct xcode version * correct xcode version * correct xcode version * build android unified in one job * correct apk name * try to find apk location * use absolute url * e2e name .maestro dir
- Loading branch information
1 parent
7208a11
commit 14705b5
Showing
15 changed files
with
178 additions
and
255 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
root: true, | ||
extends: '@react-native', | ||
ignorePatterns: ['e2e/', 'coverage'], | ||
ignorePatterns: ['.maestro/', 'coverage'], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,82 +10,45 @@ concurrency: | |
|
||
jobs: | ||
build_android: | ||
name: Build Android | ||
timeout-minutes: 60 | ||
name: Build & Test Android | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/bootstrap | ||
timeout-minutes: 15 | ||
env: | ||
INSTALL_NODE: true | ||
INSTALL_JAVA: true | ||
|
||
- name: Build | ||
run: bundle exec fastlane build_android | ||
|
||
- name: Upload .apk | ||
uses: actions/upload-artifact@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
name: apk | ||
path: '**/dist/*.apk' | ||
|
||
test_android: | ||
name: Test Android | ||
needs: build_android | ||
timeout-minutes: 100 | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/bootstrap | ||
timeout-minutes: 15 | ||
env: | ||
INSTALL_NODE: true | ||
INSTALL_FFMPEG: true | ||
INSTALL_MAESTRO: true | ||
INSTALL_ANDROID_EMULATOR: true | ||
distribution: 'zulu' | ||
java-version: '17' | ||
check-latest: true | ||
|
||
- name: Download .apk | ||
uses: actions/download-artifact@v3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
name: apk | ||
node-version: '18' | ||
|
||
- name: Create AVD Snapshot | ||
if: steps.avd-cache.outputs.cache-hit != 'true' | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 30 | ||
arch: x86_64 | ||
target: google_apis | ||
profile: pixel_5 | ||
force-avd-creation: false | ||
avd-name: test | ||
ram-size: 8192M | ||
disk-size: 2048M | ||
emulator-boot-timeout: 1000 | ||
emulator-options: -no-window -no-boot-anim -no-audio -no-snapshot-load -gpu swiftshader_indirect | ||
script: echo 'AVD snapshot is generated and will be cached for the future runs.' | ||
- name: Run Yarn Install | ||
run: yarn install | ||
|
||
- name: Test | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 30 | ||
arch: x86_64 | ||
target: google_apis | ||
profile: pixel_5 | ||
force-avd-creation: false | ||
avd-name: test | ||
ram-size: 8192M | ||
disk-size: 2048M | ||
emulator-boot-timeout: 1000 | ||
emulator-options: -no-window -no-boot-anim -no-audio -no-snapshot-load -gpu swiftshader_indirect | ||
script: bundle exec fastlane test_android | ||
- name: Build Release APK | ||
run: cd android && ./gradlew assembleRelease | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
- name: Upload to Maestro Cloud | ||
uses: mobile-dev-inc/[email protected] | ||
with: | ||
name: Android Test Data | ||
path: | | ||
**/fastlane/recordings | ||
~/.maestro/tests | ||
api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }} | ||
app-file: /home/runner/work/react-native-testing/react-native-testing/android/app/build/outputs/apk/release/app-release.apk | ||
|
||
build_ios: | ||
name: Build IOS | ||
timeout-minutes: 60 | ||
runs-on: macos-latest | ||
steps: | ||
- name: Archive iOS app | ||
run: echo "To be implemented" | ||
# - uses: actions/checkout@v2 | ||
# - uses: maxim-lobanov/[email protected] | ||
# with: | ||
# xcode-version: 14.2.0 | ||
# - run: cd ios && xcodebuild -project reactnativetesting.xcodeproj -scheme reactnativetesting -destination 'platform=iOS Simulator,name=iPhone 11' |
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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
Oops, something went wrong.