-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from XRPL-Labs/revert-101-develop
Revert "v3.0.0" conflict
- Loading branch information
Showing
1,236 changed files
with
20,719 additions
and
37,646 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 |
---|---|---|
@@ -1,45 +1,48 @@ | ||
module.exports = { | ||
apps: { | ||
'xaman.ios': { | ||
'ios.debug': { | ||
type: 'ios.app', | ||
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/Xaman.app', | ||
build: 'xcodebuild -workspace ios/Xaman.xcworkspace -scheme Xaman -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build', | ||
}, | ||
'ios.release': { | ||
type: 'ios.app', | ||
binaryPath: 'ios/build/Build/Products/Release-iphonesimulator/Xaman.app', | ||
build: 'xcodebuild -workspace ios/Xaman.xcworkspace -scheme Xaman -configuration Release -sdk iphonesimulator -derivedDataPath ios/build', | ||
}, | ||
'xaman.android': { | ||
'android.debug': { | ||
type: 'android.apk', | ||
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk', | ||
build: 'cd android && ./gradlew app:assembleDebug app:assembleAndroidTest -DtestBuildType=debug && cd ..', | ||
}, | ||
'android.release': { | ||
type: 'android.apk', | ||
binaryPath: 'android/app/build/outputs/apk/release/app-x86_64-release.apk', | ||
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk', | ||
build: 'cd android && ./gradlew app:assembleRelease app:assembleAndroidTest -DtestBuildType=release && cd ..', | ||
}, | ||
}, | ||
devices: { | ||
'ios.simulator': { | ||
type: 'ios.simulator', | ||
headless: process.env.CI ? true : undefined, | ||
device: { type: 'iPhone 15 Pro' }, | ||
}, | ||
'android.emulator': { | ||
type: 'android.apk', | ||
device: { avdName: 'Nexus_5X_API_28' }, | ||
}, | ||
'android.attached': { | ||
type: 'android.attached', | ||
device: { | ||
adbName: '.*', | ||
}, | ||
}, | ||
}, | ||
configurations: { | ||
'ios.simulator+xaman.ios': { | ||
'ios.sim.debug': { | ||
device: 'ios.simulator', | ||
app: 'xaman.ios', | ||
app: 'ios.debug', | ||
}, | ||
'android.emulator+xaman.android': { | ||
device: 'android.emulator', | ||
app: 'xaman.android', | ||
'ios.sim.release': { | ||
device: 'ios.simulator', | ||
app: 'ios.release', | ||
}, | ||
'android.attached+xaman.android': { | ||
device: 'android.attached', | ||
app: 'xaman.android', | ||
'android.emu.debug': { | ||
device: 'android.emulator', | ||
app: 'android.debug', | ||
}, | ||
}, | ||
}; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,44 +1,70 @@ | ||
name: e2e | ||
env: | ||
CI: true | ||
DETOX_CONFIGURATION: ios.simulator+xaman.ios | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ develop, master ] | ||
on: [pull_request] | ||
|
||
jobs: | ||
build-test: | ||
if: github.event.pull_request.draft == false | ||
runs-on: [ self-hosted, macOS, ARM64 ] | ||
build-run: | ||
if: "contains(github.event.commits[0].message, '[include e2e]')" | ||
runs-on: macos-11 | ||
|
||
steps: | ||
- name: Setup Xcode | ||
uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Prepare Environment | ||
uses: ./.github/actions/prepare-env | ||
- name: Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.x | ||
|
||
- run: node --version | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v1 | ||
id: cache | ||
with: | ||
cocoapods: 'true' | ||
path: node_modules | ||
key: node-modules-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Rebuild detox | ||
run: | | ||
npx detox clean-framework-cache | ||
npx detox build-framework-cache | ||
if: steps.cache.outputs.cache-hit == 'true' | ||
run: npx detox clean-framework-cache && npx detox build-framework-cache | ||
|
||
- name: Build app for detox | ||
run: npx detox build e2e --configuration ${DETOX_CONFIGURATION} --if-missing | ||
- name: Install Dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: npm ci | ||
|
||
- name: Cache Pods | ||
uses: actions/cache@v1 | ||
id: podcache | ||
with: | ||
path: ios/Pods | ||
key: pods-${{ hashFiles('**/Podfile.lock') }} | ||
|
||
- name: Update Pods | ||
run: | | ||
gem update cocoapods xcodeproj | ||
cd ios && pod install && cd .. | ||
- name: Prepare | ||
run: | | ||
brew tap wix/brew | ||
brew install applesimutils | ||
make build-env | ||
make generate-locales | ||
mv src/app.tsx src/app.tsx.old && cat src/app.tsx.old|perl -pe'BEGIN{undef $/;} s/if \(isJailBroken.+?}/\/\/ No root or jailbreak detection/gms' > src/app.tsx | ||
- name: Run e2e tests | ||
run: npx cucumber-js ./e2e test | ||
- run: npx detox build e2e --configuration ios.sim.release | ||
- run: npx cucumber-js ./e2e --configuration ios.sim.release | ||
|
||
- name: Upload artifact files | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: e2e artifact | ||
name: artifact | ||
path: e2e/artifacts/ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.