build(ci): downgrade Codecov upload action to v3 #4411
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: Test on chain upgrade | |
# On chain upgrade workflow tests the on-chain upgrade procedure. | |
# This workflow is run on pushes to master & every Pull Requests where a .go, .mod, .sum have been changed | |
on: | |
pull_request: | |
types: [opened, synchronize, labeled, unlabeled] | |
push: | |
branches: | |
- master | |
jobs: | |
Cleanup-runs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cleanup 🧹 | |
uses: rokroskar/workflow-run-cleanup-action@master | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" | |
Perform-upgrade: | |
if: "contains(github.event.pull_request.labels.*.name, 'requires-upgrade')" | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
env: | |
GENESIS_DESMOS_VERSION: "v5.2.0" | |
GENESIS_URL: "https://github.com/desmos-labs/states/raw/main/morpheus-apollo-3-12526100.json" | |
UPGRADE_NAME: "v6" | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Setup Go 🧰 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.19' | |
- name: Install Desmos 🔧 | |
run: make clean install | |
- name: Start testnet ⛓ | |
run: | | |
make upgrade-testnet-start \ | |
GENESIS_VERSION="$GENESIS_DESMOS_VERSION" \ | |
GENESIS_URL="$GENESIS_URL" \ | |
UPGRADE_NAME="$UPGRADE_NAME" | |
- name: Submit upgrade ✅ | |
run: | | |
./contrib/upgrade_testnet/submit_upgrade_proposal.sh 4 $GENESIS_DESMOS_VERSION $UPGRADE_NAME 75 |