Code Monkey home page Code Monkey logo

mobile-pipeline-poc's Introduction

Demo Mobile CI/CD pipeline using React Native

Example application and CI/CD pipeline showing how to run a React Native project using GitHub Actions.

This repository was forked and edited from a Semaphore demo application linked here.

Installation

$ yarn install
IOS

If you haven't used Cocoapods before you'll also need to install Cocoapods

$ sudo gem install cocoapods 
$ cd ios
$ pod install
Android

Make sure your JAVA_HOME, ANDROID_HOME, and ANDROID_SDK_ROOT environment variables are all setup.

export JAVA_home=".../openjdk"
export ANDROID_HOME=".../Android/sdk"
export ANDROID_SDK_root=".../Android/sdk"

You might have to install android-platform-tools.

$ brew install android-platform-tools

Running the app

$ npm start

If you want to run the app in a phone simulator you will run one of these commands:

IOS
$ npm run ios
Android
$ npm run android

Lint

$ npm run lint

Unit and integration tests

$ npm test

e2e UI tests iOS

$ npm run detox-ios-build
$ npm run detox-ios-test

e2e UI tests android

$ npm run detox-android-build
$ npm run detox-android-test

Troubleshooting

If while runing your end to end tests on iOS you get this error #error Unsupported architecture make sure that the detox configuration uses the ONLY_ACTIVE_ARCH=YES flag as shown in the package.json file.

License

Copyright (c) 2019 Rendered Text

Distributed under the MIT License. See the file LICENSE.md.

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.