lingvano / react-native-eas-maestro Goto Github PK
View Code? Open in Web Editor NEWRunning E2E Tests with Maestro Cloud (Expo/EAS + React Native)
Running E2E Tests with Maestro Cloud (Expo/EAS + React Native)
Hi !
I followed your tutorial and ended up with :
https://console.mobile.dev/
eas-build-on-success
failing on o this error before uploading to https://console.mobile.dev/
:==> openjdk
For the system Java wrappers to find this JDK, symlink it with
sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
openjdk is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS provides similar software and installing this software in
parallel can cause all kinds of trouble.
If you need to have openjdk first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc
For compilers to find openjdk you may need to set:
export CPPFLAGS="-I/opt/homebrew/opt/openjdk/include"
[stderr]
+ echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"'
[stderr]
+ sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
[stderr]
+ export CPPFLAGS=-I/opt/homebrew/opt/openjdk/include
[stderr]
+ CPPFLAGS=-I/opt/homebrew/opt/openjdk/include
[stderr]
+ APP_EXECUTABLE_PATH=/Users/expo/workingdir/build/ios/build/Build/Products/Release-iphonesimulator/MaestroEasExample.app
[stderr]
+ MAESTRO_API_KEY=************************************
[stderr]
+ maestro cloud --apiKey ************************************ /Users/expo/workingdir/build/ios/build/Build/Products/Release-iphonesimulator/MaestroEasExample.app maestro/test.yaml
Uploading Flow(s)...
[stderr]
java.io.FileNotFoundException: /Users/expo/workingdir/build/ios/build/Build/Products/Release-iphonesimulator/MaestroEasExample.app
[stderr]
at org.rauschig.jarchivelib.CommonsArchiver.writeToArchive(CommonsArchiver.java:225)
[stderr]
at org.rauschig.jarchivelib.CommonsArchiver.create(CommonsArchiver.java:63)
[stderr]
at maestro.cli.cloud.CloudInteractor.upload(CloudInteractor.kt:85)
[stderr]
at maestro.cli.command.CloudCommand.call(CloudCommand.kt:131)
[stderr]
at maestro.cli.command.CloudCommand.call(CloudCommand.kt:32)
[stderr]
at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
[stderr]
at picocli.CommandLine.access$1200(CommandLine.java:145)
[stderr]
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
[stderr]
at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
[stderr]
at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
[stderr]
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
[stderr]
at maestro.cli.DisableAnsiMixin$Companion.executionStrategy(DisableAnsiMixin.kt:22)
[stderr]
at picocli.CommandLine.execute(CommandLine.java:2058)
[stderr]
at maestro.cli.AppKt.main(App.kt:136)
[stderr]
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Here is my eas-build.yaml
name: EAS Builds
on:
push:
branches: [main]
jobs:
eas-build:
name: Trigger EAS build for development-sim
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: ๐ Setup repository
uses: actions/checkout@v3
- name: ๐ Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: ๐ Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: ๐ฆ Install dependencies
run: yarn install
- name: ๐ Send build request
run: eas build --platform all --non-interactive --no-wait --profile development-sim
shell: bash
Here is my eas.json
{
"cli": {
"version": ">= 3.9.2"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"resourceClass": "m-medium"
}
},
"preview": {
"distribution": "internal",
"ios": {
"resourceClass": "m-medium"
}
},
"production": {
"env": {
"SUPABASE_API_URL": ... ,
"SUPABASE_ANON_KEY": "..."
},
"ios": {
"resourceClass": "m-medium"
}
},
"development-sim": {
"env": {
"SUPABASE_API_URL": ... ,
"SUPABASE_ANON_KEY": "..."
},
"distribution": "internal",
"ios": {
"simulator": true
}
}
},
"submit": {
"production": {}
}
}
Do you have any idea of what can be wrong ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.