WIP CI Proxy upgrade verification flow #7
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: Verify Deployment | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
release: | |
types: [published] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
verify: | |
# if: startsWith(github.head_ref, 'deploy/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: FuelLabs/github-actions/setups/node@master | |
with: | |
node-version: 20.16.0 | |
pnpm-version: 9.0.6 | |
- name: Verify deployment bytecode | |
run: | | |
# Extract branch name from `GITHUB_REF` | |
BRANCH_NAME=${{ github.ref }} | |
# Remove the refs/heads/ prefix | |
BRANCH_NAME=${BRANCH_NAME#refs/heads/deploy/} | |
npx hardhat verify-deployment --network upgradeTest | |
working-directory: ./packages/solidity-contracts |