Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2486 from LedgerHQ/release/3.1.x
Browse files Browse the repository at this point in the history
release/3.1.x
  • Loading branch information
lambertkevin authored May 12, 2022
2 parents 9f295e8 + 82b79df commit c462acc
Show file tree
Hide file tree
Showing 420 changed files with 5,348 additions and 34,952 deletions.
13 changes: 11 additions & 2 deletions .detoxrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"build": "cd android && ENVFILE=.env.mock ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
"type": "android.emulator",
"device": {
"avdName": "Nexus_5X_API_29_x86"
"avdName": "Nexus_6_API_30"
}
},
"android.staging": {
Expand All @@ -33,7 +33,16 @@
"build": "cd android && ENVFILE=.env.mock ./gradlew assembleStagingRelease assembleAndroidTest -DtestBuildType=stagingRelease && cd ..",
"type": "android.emulator",
"device": {
"avdName": "Nexus_5X_API_29_x86"
"avdName": "Nexus_6_API_30"
}
},
"android.staging-ci": {
"binaryPath": "android/app/build/outputs/apk/stagingRelease/app-x86-stagingRelease.apk",
"testBinaryPath": "android/app/build/outputs/apk/androidTest/stagingRelease/app-stagingRelease-androidTest.apk",
"build": "cd android && ENVFILE=.env.mock ./gradlew assembleStagingRelease assembleAndroidTest -DtestBuildType=stagingRelease -PwithTestButler --warning-mode all && cd ..",
"type": "android.emulator",
"device": {
"avdName": "Nexus_6_API_30"
}
}
}
Expand Down
76 changes: 76 additions & 0 deletions .github/workflows/detox-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Detox E2E CI

on:
pull_request:
branches:
- "*"
workflow_dispatch:
inputs:
prNumber:
description: pr number to trigger on
required: true
schedule:
- cron: "0 0 * * *"

jobs:
ios:
runs-on: macos-latest
steps:
- name: Checkout PR
uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6 # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Install applesimutils
run: |
brew tap wix/brew
brew install applesimutils
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 14
cache: 'yarn'

- name: Has hash commit deps
uses: ledgerhq/actions/packages/has-hash-commit-deps@main
id: has-hash-commit-deps
with:
workspace: ${{ github.workspace }}

- name: Install dependencies without network concurrency
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }}
env:
JOBS: max
run: yarn --prefer-offline --frozen-lockfile --network-timeout 100000 --network-concurrency 1

- name: Install dependencies with network concurrency
if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }}
env:
JOBS: max
run: yarn --prefer-offline --frozen-lockfile --network-timeout 100000

- name: Rebuild detox
run: yarn detox clean-framework-cache && yarn detox build-framework-cache

- name: Build iOS app for Detox test run
env:
NODE_OPTIONS: "--max-old-space-size=7168"
run: yarn e2e:build -c ios.staging

- name: Test iOS app
timeout-minutes: 15
run: yarn e2e:test -c ios.staging --loglevel verbose --record-logs failing --record-timeline all --take-screenshots all --record-videos failing --detectOpenHandles
- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v2
with:
name: test-ios-artifacts
path: artifacts
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,20 @@ It communicates with the [Ledger Nano X](https://www.ledger.com/pages/ledger-nan

- Node LTS version
- Yarn 1.10.1 or above
- [Full React Native environment setup instructions here, **under "React Native CLI Quickstart" tab**](https://reactnative.dev/docs/environment-setup)

### iOS

- XCode
- Ruby 2.6.8 or above. The macOS built-in Ruby [does not work properly for installing dependencies of the iOS app](https://jeffreymorgan.io/articles/ruby-on-macos-with-rvm/), you have to install Ruby with for instance [Homebrew](https://brew.sh/) or [rvm](https://rvm.io/rvm/install) and make sure that `which ruby` points to that newly installed Ruby.

### Android

- Android Studio
- JDK 11
- Required SDK tools: (go to Android Studio > Tools > SDK Manager > SDK Tools > check "Show Package Details" at the bottom right)
- Android NDK 21.4.7075529 (in case this doc is outdated, check the version specified as `ndkVersion` in `android/build.gradle`)
- CMake 3.10.2

## Scripts

Expand Down
220 changes: 0 additions & 220 deletions TERMS.es.md

This file was deleted.

209 changes: 0 additions & 209 deletions TERMS.fr.md

This file was deleted.

Loading

0 comments on commit c462acc

Please sign in to comment.