-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b50aba
commit 6a60874
Showing
2 changed files
with
65 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Check SDK submodule version | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
job_check_SDK: | ||
name: Check Ethereum plugin SDK submodule is up-to-date | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone plugin | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Clone SDK | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: LedgerHQ/ethereum-plugin-sdk | ||
path: plugin-sdk | ||
ref: ${{ github.base_ref || github.ref_name }} | ||
- name: Comparing the SDK hash values | ||
run: | | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
REPO_SDK_HASH=$(git submodule status | grep sdk | cut -d ' ' -f2) | ||
echo "SDK submodule hash: ${REPO_SDK_HASH} (checked out from '${{ github.base_ref || github.ref_name }}')" | ||
CURRENT_SDK_HASH=$(cd ./plugin-sdk/ && git rev-parse HEAD) | ||
echo "SDK submodule hash: ${CURRENT_SDK_HASH}" | ||
if [ ${REPO_SDK_HASH} = ${CURRENT_SDK_HASH} ] | ||
then | ||
echo "SDK versions match!" | ||
exit 0 | ||
else | ||
echo "SDK versions mismatch!" | ||
exit 1 | ||
fi |
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,25 @@ | ||
name: Ensure compliance with Ledger guidelines | ||
|
||
# This workflow is mandatory in all applications | ||
# It calls a reusable workflow guidelines_enforcer developed by Ledger's internal developer team. | ||
# The successful completion of the reusable workflow is a mandatory step for an app to be available on the Ledger | ||
# application store. | ||
# | ||
# More information on the guidelines can be found in the repository: | ||
# LedgerHQ/ledger-app-workflows/ | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
guidelines_enforcer: | ||
name: Call Ledger guidelines_enforcer | ||
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_guidelines_enforcer.yml@v1 | ||
with: | ||
run_for_devices: '["nanos", "nanox", "nanosp"]' |