Ledger Paraswap eth plugin translation into erc7730 standard #239
Workflow file for this run
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
name: ✨ pull request | |
on: | |
pull_request: | |
paths-ignore: | |
- 'developer-preview/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
validate_descriptors: | |
name: 🔎 validate descriptors | |
runs-on: public-ledgerhq-shared-small | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
timeout-minutes: 10 | |
uses: actions/checkout@v4 | |
- name: Get all changed descriptor files | |
timeout-minutes: 5 | |
id: changed-descriptor-files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
registry/**/eip712-*.json | |
registry/**/calldata-*.json | |
- name: Get API keys | |
timeout-minutes: 10 | |
if: steps.changed-descriptor-files.outputs.any_changed == 'true' | |
shell: bash | |
run: | | |
cat << EOF | jq -r 'to_entries[] | select(.key|endswith("_API_KEY")) | "\(.key)=\(.value)"' >> "$GITHUB_ENV" | |
${{ toJSON(secrets) }} | |
EOF | |
- name: Setup python | |
timeout-minutes: 10 | |
if: steps.changed-descriptor-files.outputs.any_changed == 'true' | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
- name: Install ERC-7730 library | |
timeout-minutes: 10 | |
if: steps.changed-descriptor-files.outputs.any_changed == 'true' | |
run: pip install erc7730 | |
- name: Validate ERC-7730 descriptors changed in pull request | |
timeout-minutes: 10 | |
if: steps.changed-descriptor-files.outputs.any_changed == 'true' | |
run: erc7730 lint ${{ steps.changed-descriptor-files.outputs.all_changed_files }} --gha |