Skip to content

0.9.18

0.9.18 #227

Workflow file for this run

name: Sepolia Testnet

Check failure on line 1 in .github/workflows/testnet.yml

View workflow run for this annotation

GitHub Actions / Sepolia Testnet

Invalid workflow file

The workflow is not valid. .github/workflows/testnet.yml: The value '0xe9e21aaEaEad9c57C1F4c622915fFB54f9Ebe338' on line 16 and column 22 is invalid for the type 'tag:yaml.org,2002:int'
on:
push:
tags:
- "*"
concurrency:
group: "ghcr-image"
cancel-in-progress: true
env:
RPC_URL: ${{ secrets.RPC_URL }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
ECDSA_LIB_ADDRESS: 0xe9e21aaEaEad9c57C1F4c622915fFB54f9Ebe338
jobs:
check:
strategy:
fail-fast: true
name: collective-governance-v1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Yarn install
run: |
yarn install --dev
yarn prettier:check
yarn hint
yarn install --production
- name: Run Forge tests
run: |
forge test -v --fail-fast
id: test
- name: GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: false
prerelease: false
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body_path: CHANGELOG.md
- name: Deploy Constant Library
run: |
forge create --json --contracts contracts/Constant.sol --rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY} Constant | tee Constant.sol.json
- name: Deploy to Treasury Builder to Testnet
run: |
export DEPLOYED_LIBRARY=$(bin/library.py Constant.sol.json)
echo "Using library ${DEPLOYED_LIBRARY}"
forge script ./script/DeployTreasuryBuilder.sol --sig 'deploy()' --libraries ./lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol:ECDSA:${ECDSA_LIB_ADDRESS} --libraries ${DEPLOYED_LIBRARY} --slow --broadcast --rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY}