update feegrant requirements #375
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: Validate Gentx | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
changes: | |
runs-on: ubuntu-20.04 | |
outputs: | |
gentx_files: ${{ steps.gentx.outputs.gentx_files }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: check file changes | |
id: check | |
run: | | |
echo "changed_files=$(git diff --name-status -r HEAD^1 HEAD |grep -v ^D |grep "archway-1/gentx" |cut -f2)" >> $GITHUB_OUTPUT | |
- name: Check for gentxs | |
id: gentx | |
run: | | |
if [ ! -z "${{ steps.check.outputs.changed_files }}" ]; then | |
for file in "${{ steps.check.outputs.changed_files }}"; do | |
echo "gentx_files=$file" >> $GITHUB_OUTPUT | |
done | |
fi | |
Validation: | |
runs-on: ubuntu-20.04 | |
needs: changes | |
if: ${{ needs.changes.outputs.gentx_files != null }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Archwayd binary | |
run: | | |
wget https://github.com/archway-network/archway/releases/download/v1.0.0/archwayd_linux_amd64 | |
mv archwayd_linux_amd64 archwayd | |
chmod +x archwayd | |
- name: Test the binary | |
run: ./archwayd version | |
- name: Validate gentx | |
run: | | |
chmod +x scripts/genesis-validate.sh | |
for file in "${{ needs.changes.outputs.gentx_files }}"; do | |
scripts/genesis-validate.sh $file | |
done |