forked from LedgerHQ/ledger-live
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging newest changes from upstream
- Loading branch information
Showing
5,793 changed files
with
634,771 additions
and
414,275 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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 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 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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: "Account migration test" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
currencies: | ||
description: "Currency to run the migration test on. If not specified the test will be run on all supported currencies. If specififed currencies should be comma seperated" | ||
required: false | ||
ref: | ||
description: "The reference branch where the migration is made from. Will be develop by default" | ||
required: false | ||
default: "develop" | ||
|
||
jobs: | ||
account_migration: | ||
name: "account-migration" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: generate token | ||
id: generate-token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ secrets.GH_BOT_APP_ID }} | ||
private_key: ${{ secrets.GH_BOT_PRIVATE_KEY }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.base_ref || inputs.ref }} | ||
token: ${{ steps.generate-token.outputs.token }} | ||
|
||
- name: Setup git user | ||
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-git-user@develop | ||
|
||
- name: Setup the toolchain | ||
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop | ||
|
||
- name: install dependencies and build | ||
run: | | ||
pnpm i --filter="!./apps/**" | ||
pnpm build:llc | ||
- name: Generate target output filename | ||
id: target-output-file | ||
# we get TARGET_SYNC_FILE_BASENAME from the same command later run in account-migration.ts to get the same basename | ||
run: | | ||
TARGET_SYNC_FILE_BASENAME=$(git rev-parse --short HEAD) | ||
echo "TARGET_SYNC_FILE_BASENAME=$(echo ${TARGET_SYNC_FILE_BASENAME})" >> $GITHUB_OUTPUT | ||
- name: Run synchronisation on target branch for currencies ${{ inputs.currencies }} | ||
if: ${{ inputs.currencies }} | ||
# TARGET_SYNC_FILE_BASENAME is based on https://github.com/LedgerHQ/ledger-live/blob/feat/live-11055-migration-account-test/libs/ledger-live-common/src/__tests__/migration/account-migration.ts#L267 | ||
run: | | ||
pnpm common test-account-migration --currencies ${{ inputs.currencies }} --outputFolderPath /home/runner/work/ledger-live | ||
- name: Run synchronisation on target branch on all currencies | ||
if: ${{ !inputs.currencies }} | ||
run: | | ||
pnpm common test-account-migration --outputFolderPath /home/runner/work/ledger-live | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
|
||
- name: install dependencies and build | ||
run: | | ||
pnpm i --filter="!./apps/**" | ||
pnpm build:llc | ||
- name: run synchronisation on current branch | ||
run: | | ||
pnpm common test-account-migration --inputFile /home/runner/work/ledger-live/${{ steps.target-output-file.outputs.TARGET_SYNC_FILE_BASENAME }}.json --outputFolderPath /home/runner/work/ledger-live | ||
- name: Generate current branch output filename | ||
id: current-branch-output-filename | ||
run: | | ||
CURRENT_BRANCH_SYNC_FILE_BASENAME=$(git rev-parse --short HEAD) | ||
echo "CURRENT_BRANCH_SYNC_FILE_BASENAME=$(echo ${CURRENT_BRANCH_SYNC_FILE_BASENAME})" >> $GITHUB_OUTPUT | ||
- name: print diff during migration | ||
run: diff -u /home/runner/work/ledger-live/${{ steps.target-output-file.outputs.TARGET_SYNC_FILE_BASENAME }}.json /home/runner/work/ledger-live/${{ steps.current-branch-output-filename.outputs.CURRENT_BRANCH_SYNC_FILE_BASENAME }}.json || true |
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
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 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 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 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 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 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 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
Oops, something went wrong.