-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
389 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: React Native E2E Tests | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, develop ] | ||
push: | ||
branches: [ main, develop ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
android-e2e-tests: | ||
name: Android E2E Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
|
||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
bundler-cache: true | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: | | ||
yarn install --frozen-lockfile | ||
cd android && bundle install | ||
- name: Update Fastlane | ||
run: | | ||
cd android | ||
bundle update fastlane | ||
- name: Verify Fastlane setup | ||
run: | | ||
cd android | ||
bundle exec fastlane --version | ||
bundle exec fastlane lanes | ||
- name: Build and run Android app | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 29 | ||
arch: x86_64 | ||
profile: Nexus 6 | ||
script: | | ||
cd android | ||
bundle exec fastlane --verbose android build_and_install | ||
cd .. | ||
echo "Installing Maestro..." | ||
curl -Ls "https://get.maestro.mobile.dev" | bash | ||
export PATH="$PATH":"$HOME/.maestro/bin" | ||
echo "Running Maestro tests..." | ||
maestro --verbose test e2e/main-flow-android.yaml | ||
- name: Upload Maestro logs | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: maestro-android-logs | ||
path: ~/.maestro/logs |
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
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
default_platform(:android) | ||
|
||
# platform :android do | ||
# desc "Build development APK" | ||
# lane :build_dev do | ||
# gradle( | ||
# task: "clean assembleDebug", | ||
# project_dir: "./" | ||
# ) | ||
# end | ||
# end | ||
|
||
|
||
platform :android do | ||
desc "Build and install the app" | ||
lane :build_and_install do | ||
gradle(task: "assembleDebug") | ||
gradle(task: "installDebug") | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
fastlane documentation | ||
---- | ||
|
||
# Installation | ||
|
||
Make sure you have the latest version of the Xcode command line tools installed: | ||
|
||
```sh | ||
xcode-select --install | ||
``` | ||
|
||
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) | ||
|
||
# Available Actions | ||
|
||
## Android | ||
|
||
### android build_dev | ||
|
||
```sh | ||
[bundle exec] fastlane android build_dev | ||
``` | ||
|
||
Build development APK | ||
|
||
---- | ||
|
||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. | ||
|
||
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). | ||
|
||
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools). |
Oops, something went wrong.