Sync v0.9.0 dev into gleecdex #142
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: Validate Coins | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: [master, dev] | |
jobs: | |
validate-coins: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install JSON tools | |
run: | | |
sudo npm install -g json-diff | |
sudo apt-get install jq -y | |
- name: Install Python | |
run: | | |
sudo apt-get install python3 python3-pip -y | |
pip3 install jsonlines | |
pip3 install requests | |
- name: Get coins repo commit | |
id: coins | |
run: | | |
echo "hash=$(jq -r .coins_repo_commit coins_ci.json)" >> $GITHUB_ENV | |
shell: bash | |
- name: Get coins.json and coins_config.json from KomodoPlatform/coins repo | |
run: | | |
curl -O https://raw.githubusercontent.com/KomodoPlatform/coins/${hash}/coins | |
curl -O https://raw.githubusercontent.com/KomodoPlatform/coins/${hash}/utils/coins_config.json | |
- name: Compare coins.json | |
run: json-diff assets/coins.json coins | |
- name: Compare coins_config.json | |
run: json-diff assets/coins_config.json coins_config.json | |
- name: Check wallet-only coins | |
run: python3 utils/check_wallet_only.py | |
- name: Check URLs in app_config.dart | |
run: python3 utils/check_urls.py | |