Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
live-github-bot[bot] committed Jan 21, 2025
2 parents 474d0db + 3116040 commit a9407e8
Show file tree
Hide file tree
Showing 604 changed files with 16,435 additions and 4,899 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/generate-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ permissions:

jobs:
generate-screenshots-linux:
permissions:
id-token: write
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
env:
NODE_OPTIONS: "--max-old-space-size=7168"
FORCE_COLOR: 3
Expand Down Expand Up @@ -78,6 +83,7 @@ jobs:
id: update-snapshots
with:
os: ubuntu-22.04
token: ${{ secrets.GITHUB_TOKEN }}

report-start:
name: Report start
Expand Down
57 changes: 45 additions & 12 deletions .github/workflows/test-mobile-e2e-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ on:
required: false
type: boolean
default: false
enable_broadcast:
description: "Enable transaction broadcast"
required: false
type: boolean
default: false

# Uncomment to have log-level: trace on detox run and build
# (cf: apps/ledger-live-mobile/detox.config.js)
Expand Down Expand Up @@ -104,7 +109,7 @@ jobs:
id: detox-build
with:
path: ${{ github.workspace }}/apps/ledger-live-mobile/ios/build/Build/Products/Release-iphonesimulator
key: ${{ runner.os }}-detox-${{ hashFiles('apps/ledger-live-mobile/ios/Podfile.lock', 'apps/ledger-live-mobile/ios/ledgerlivemobile.xcodeproj/project.pbxproj', 'apps/ledger-live-mobile/detox.config.js', 'apps/ledger-live-mobile/.env.mock') }}
key: ${{ runner.os }}-detox-${{ hashFiles('apps/ledger-live-mobile/ios/Podfile.lock', 'apps/ledger-live-mobile/ios/ledgerlivemobile.xcodeproj/project.pbxproj', 'apps/ledger-live-mobile/detox.config.js', 'apps/ledger-live-mobile/.env.mock', 'apps/ledger-live-mobile/ios/ledgerlivemobile/AppDelegate.mm') }}
accessKey: ${{ env.AWS_ACCESS_KEY_ID }}
secretKey: ${{ env.AWS_SECRET_ACCESS_KEY }}
sessionToken: ${{ env.AWS_SESSION_TOKEN}}
Expand All @@ -121,7 +126,7 @@ jobs:
- name: Create iOS simulator
id: simulator
run: |
ID=$(xcrun simctl create "iPhone 14" "iPhone 14")
ID=$(xcrun simctl create "iPhone 15" "iPhone 15")
echo "id=$ID" >> $GITHUB_OUTPUT
- name: Build iOS app for Detox test run
if: steps.detox-build.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -158,7 +163,7 @@ jobs:
allure-report-ios:
name: "Allure Reports Export on Server"
runs-on: [ledger-live-medium]
if: ${{ always() && (inputs.slack_notif || github.event_name == 'push') }}
if: ${{ !inputs.speculos_tests && (inputs.slack_notif || github.event_name == 'push') }}
needs: [detox-tests-ios]
outputs:
report-url: ${{ steps.upload.outputs.report-url }}
Expand Down Expand Up @@ -191,16 +196,18 @@ jobs:
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
LC_ALL: en_US.UTF-8
AVD_API: 32
AVD_API: 35
AVD_ARCH: x86_64
AVD_PROFILE: pixel_6_pro
AVD_PROFILE: pixel_7_pro
AVD_TARGET: google_apis
AVD_NAME: "Pixel_6_Pro_API_32"
AVD_NAME: "Pixel_7_Pro_API_35"
AVD_CORES: 4
AVD_RAM_SIZE: 4096M
AVD_OPTIONS: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
outputs:
status: ${{ steps.detox.outcome }}
status_1: ${{ steps.set-output.outputs.status_1 }}
status_2: ${{ steps.set-output.outputs.status_2 }}
status_3: ${{ steps.set-output.outputs.status_3 }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -301,6 +308,12 @@ jobs:
speculos_tag: ${{ env.SPECULOS_IMAGE_TAG }}
bot_id: ${{ secrets.GH_BOT_APP_ID }}
bot_key: ${{ secrets.GH_BOT_PRIVATE_KEY }}
- name: Set DISABLE_TRANSACTION_BROADCAST
if: ${{ env.SPECULOS_RUN == 'true' }}
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-e2e-broadcast@develop
with:
enable_broadcast: ${{ inputs.enable_broadcast }}
schedule_cron: ${{ github.event.schedule.cron }}
- name: Run Android Tests
id: detox
run: pnpm mobile e2e:ci -p android -t $([[ "$INPUT_SPECULOS" == "true" ]] && printf %s '--speculos') --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
Expand All @@ -315,6 +328,10 @@ jobs:
with:
name: "android-test-artifacts-${{ matrix.shardIndex }}"
path: apps/ledger-live-mobile/artifacts/
- name: Set job output based on detox result
id: set-output
if: always()
run: echo "status_${{ matrix.shardIndex }}=${{ steps.detox.outcome }}" >> $GITHUB_OUTPUT

allure-report-android:
name: "Allure Reports Export on Server"
Expand All @@ -323,7 +340,7 @@ jobs:
outputs:
report-url: ${{ steps.upload.outputs.report-url }}
result: ${{ steps.summary.outputs.test_result }}
status: ${{ needs.detox-tests-android.outputs.status }}
finalStatus: ${{ steps.aggregate.outputs.finalStatus }}
needs: [detox-tests-android]
steps:
- name: checkout
Expand All @@ -344,6 +361,22 @@ jobs:
with:
allure-results-path: android-test-artifacts
platform: android
- name: Aggregate test results
id: aggregate
run: |
if [ "${{ env.SPECULOS_RUN }}" == "true" ]; then
statuses=("${{ needs.detox-tests-android.outputs.status_1 }}" "${{ needs.detox-tests-android.outputs.status_2 }}" "${{ needs.detox-tests-android.outputs.status_3 }}")
else
statuses=("${{ needs.detox-tests-android.outputs.status_1 }}")
fi
finalStatus="success"
for status in "${statuses[@]}"; do
if [ "$status" != "success" ]; then
finalStatus="failure"
break
fi
done
echo "finalStatus=$finalStatus" >> $GITHUB_OUTPUT
upload-to-xray:
name: "Upload to Xray"
Expand Down Expand Up @@ -409,7 +442,7 @@ jobs:
env:
IOS_STATUS: ${{ needs.allure-report-ios.outputs.status }}
IOS_REPORT_URL: ${{ needs.allure-report-ios.outputs.report-url }}
ANDROID_STATUS: ${{ needs.allure-report-android.outputs.status }}
ANDROID_STATUS: ${{ needs.allure-report-android.outputs.finalStatus }}
ANDROID_REPORT_URL: ${{ needs.allure-report-android.outputs.report-url }}
steps:
- name: format message
Expand All @@ -425,7 +458,7 @@ jobs:
"text": {
"type": "plain_text",
"text": process.env.SPECULOS_RUN == 'false'
? "Ledger Live Mobile Mocked Tests on ${{ github.ref_name }}"
? "Ledger Live Mobile Mocked Tests on ${{ github.ref_name }}"
: ":ledger-logo: Ledger Live Mobile E2E nightly tests results on ${{ github.ref_name }}",
"emoji": true
}
Expand Down Expand Up @@ -503,8 +536,8 @@ jobs:
: {
attachments: [
{
color: process.env.ANDROID_STATUS !== 'success'
? "#FF333C"
color: process.env.ANDROID_STATUS !== 'success'
? "#FF333C"
: "#33FF39",
blocks,
},
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-mobile-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ on:
required: false
type: boolean
default: false
enable_broadcast:
description: "Enable transaction broadcast"
required: false
type: boolean
default: false

# Uncomment to have log-level: trace on detox run and build
# (cf: apps/ledger-live-mobile/detox.config.js)
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/test-ui-e2e-only-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,10 @@ jobs:
shell: bash

- name: Set DISABLE_TRANSACTION_BROADCAST
id: set-broadcast
run: |
if [[ "${{ inputs.enable_broadcast }}" == "true" || ( "${{ github.event_name }}" == "schedule" && "${{ github.event.schedule.cron }}" == "0 5 * * 1" ) ]]; then
echo "DISABLE_TRANSACTION_BROADCAST=0" >> $GITHUB_ENV
else
echo "DISABLE_TRANSACTION_BROADCAST=1" >> $GITHUB_ENV
fi
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-e2e-broadcast@develop
with:
enable_broadcast: ${{ inputs.enable_broadcast }}
schedule_cron: ${{ github.event.schedule.cron }}

- name: Run playwright tests [Linux => xvfb-run]
id: tests
Expand Down
53 changes: 53 additions & 0 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# @ledgerhq/live-cli

## 24.10.0

### Minor Changes

- [#8396](https://github.com/LedgerHQ/ledger-live/pull/8396) [`d98a964`](https://github.com/LedgerHQ/ledger-live/commit/d98a96476c3d44eab1575f6c7c58ec03b5daf890) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - Support for Aptos blockchain

- [#8731](https://github.com/LedgerHQ/ledger-live/pull/8731) [`c2d24cd`](https://github.com/LedgerHQ/ledger-live/commit/c2d24cd0299ea04e39306279b6f833696bc4f4fb) Thanks [@Canestin](https://github.com/Canestin)! - Zenrock integration

### Patch Changes

- Updated dependencies [[`5e01938`](https://github.com/LedgerHQ/ledger-live/commit/5e01938ece3dc1ccf7bea6c2805b6558c846db80), [`b472e45`](https://github.com/LedgerHQ/ledger-live/commit/b472e45b7491b08cf818eb3ae5b1d1a66f1c0918), [`d98a964`](https://github.com/LedgerHQ/ledger-live/commit/d98a96476c3d44eab1575f6c7c58ec03b5daf890), [`ca55faf`](https://github.com/LedgerHQ/ledger-live/commit/ca55faf6009042a79ef1645a431901bdd813251e), [`108556d`](https://github.com/LedgerHQ/ledger-live/commit/108556d150ae1200e98077fecc2b6357969ecb4f), [`7315d69`](https://github.com/LedgerHQ/ledger-live/commit/7315d6978b70f5a0e86d707217a253ae7602c8a4), [`c2d24cd`](https://github.com/LedgerHQ/ledger-live/commit/c2d24cd0299ea04e39306279b6f833696bc4f4fb), [`7de2a5f`](https://github.com/LedgerHQ/ledger-live/commit/7de2a5f2ffdb31f0d08dfb04c7fa3048ceafaa44)]:
- @ledgerhq/coin-framework@0.22.0
- @ledgerhq/live-common@34.18.0
- @ledgerhq/cryptoassets@13.9.0
- @ledgerhq/live-env@2.5.0
- @ledgerhq/coin-bitcoin@0.9.1
- @ledgerhq/live-countervalues@0.2.17
- @ledgerhq/live-wallet@0.8.1
- @ledgerhq/device-core@0.4.11
- @ledgerhq/hw-ledger-key-ring-protocol@0.3.1
- @ledgerhq/ledger-key-ring-protocol@0.5.3
- @ledgerhq/live-network@2.0.4

## 24.10.0-next.1

### Patch Changes

- Updated dependencies []:
- @ledgerhq/live-common@34.18.0-next.1

## 24.10.0-next.0

### Minor Changes

- [#8396](https://github.com/LedgerHQ/ledger-live/pull/8396) [`d98a964`](https://github.com/LedgerHQ/ledger-live/commit/d98a96476c3d44eab1575f6c7c58ec03b5daf890) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - Support for Aptos blockchain

- [#8731](https://github.com/LedgerHQ/ledger-live/pull/8731) [`c2d24cd`](https://github.com/LedgerHQ/ledger-live/commit/c2d24cd0299ea04e39306279b6f833696bc4f4fb) Thanks [@Canestin](https://github.com/Canestin)! - Zenrock integration

### Patch Changes

- Updated dependencies [[`5e01938`](https://github.com/LedgerHQ/ledger-live/commit/5e01938ece3dc1ccf7bea6c2805b6558c846db80), [`b472e45`](https://github.com/LedgerHQ/ledger-live/commit/b472e45b7491b08cf818eb3ae5b1d1a66f1c0918), [`d98a964`](https://github.com/LedgerHQ/ledger-live/commit/d98a96476c3d44eab1575f6c7c58ec03b5daf890), [`ca55faf`](https://github.com/LedgerHQ/ledger-live/commit/ca55faf6009042a79ef1645a431901bdd813251e), [`108556d`](https://github.com/LedgerHQ/ledger-live/commit/108556d150ae1200e98077fecc2b6357969ecb4f), [`7315d69`](https://github.com/LedgerHQ/ledger-live/commit/7315d6978b70f5a0e86d707217a253ae7602c8a4), [`c2d24cd`](https://github.com/LedgerHQ/ledger-live/commit/c2d24cd0299ea04e39306279b6f833696bc4f4fb), [`7de2a5f`](https://github.com/LedgerHQ/ledger-live/commit/7de2a5f2ffdb31f0d08dfb04c7fa3048ceafaa44)]:
- @ledgerhq/coin-framework@0.22.0-next.0
- @ledgerhq/live-common@34.18.0-next.0
- @ledgerhq/cryptoassets@13.9.0-next.0
- @ledgerhq/live-env@2.5.0-next.0
- @ledgerhq/coin-bitcoin@0.9.1-next.0
- @ledgerhq/live-countervalues@0.2.17-next.0
- @ledgerhq/live-wallet@0.8.1-next.0
- @ledgerhq/device-core@0.4.11-next.0
- @ledgerhq/hw-ledger-key-ring-protocol@0.3.1-next.0
- @ledgerhq/ledger-key-ring-protocol@0.5.3-next.0
- @ledgerhq/live-network@2.0.4-next.0

## 24.9.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ledgerhq/live-cli",
"version": "24.9.0",
"version": "24.10.0",
"description": "ledger-live CLI version",
"repository": {
"type": "git",
Expand Down
3 changes: 3 additions & 0 deletions apps/cli/src/live-common-setup-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { WALLET_API_VERSION } from "@ledgerhq/live-common/wallet-api/constants";
setWalletAPIVersion(WALLET_API_VERSION);

setSupportedCurrencies([
"aptos",
"aptos_testnet",
"bitcoin",
"ethereum",
"bsc",
Expand Down Expand Up @@ -103,6 +105,7 @@ setSupportedCurrencies([
"zksync_sepolia",
"mantra",
"xion",
"zenrock",
]);

for (const k in process.env) setEnvUnsafe(k as EnvName, process.env[k]);
Expand Down
Loading

0 comments on commit a9407e8

Please sign in to comment.