Coder Social home page Coder Social logo

lingvano / react-native-eas-maestro Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 1.0 180 KB

Running E2E Tests with Maestro Cloud (Expo/EAS + React Native)

JavaScript 16.19% TypeScript 9.48% Shell 74.34%
e2e e2e-testing e2e-tests eas expo maestro react-native

react-native-eas-maestro's People

Contributors

matthias-fi avatar thalmann-christof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

muskan-delg

react-native-eas-maestro's Issues

eas-build-on-success fails only on iOS

Hi !
I followed your tutorial and ended up with :

  • Android Maestro tests running, passing in https://console.mobile.dev/
  • iOS 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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.