diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 60687b29a..eb02a1d44 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -37,7 +37,7 @@ jobs: tags: | type=ref,event=branch type=ref,event=pr - type=edge, event=pr + type=raw,value=pr-latest,event=pr type=semver,pattern={{raw}} type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 000000000..8c33e4b2a --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,30 @@ +name: contract-ci + +on: + pull_request: + push: + tags: + branches: + - 'main' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Docker compose + run: GAS_LIMIT="-1" STAKE_TOKEN="ujunox" docker-compose up -d + - name: Sleep + uses: jakejarvis/wait-action@master + with: + time: '60s' + - name: Checkout + uses: actions/checkout@v2 + with: + repository: 'envoylabs/whoami' + ref: 'v0.4.3' + - name: Run deploy script + run: | + chmod a+x ./scripts/deploy_ci.sh + ./scripts/deploy_ci.sh juno16g2rahf5846rxzp3fwlswy08fz8ccuwk03k57y + diff --git a/docker-compose.yml b/docker-compose.yml index d23996cb7..f719aead6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,4 +6,7 @@ services: ports: - 1317:1317 # rest - 26656:26656 # p2p - - 26657:26657 # rpc \ No newline at end of file + - 26657:26657 # rpc + environment: + - GAS_LIMIT=${GAS_LIMIT:-100000000} + - STAKE_TOKEN=${STAKE_TOKEN:-ustake} diff --git a/docker/setup_junod.sh b/docker/setup_junod.sh index d3b3328ac..eb9cb2204 100644 --- a/docker/setup_junod.sh +++ b/docker/setup_junod.sh @@ -7,7 +7,9 @@ FEE=${FEE_TOKEN:-ucosm} CHAIN_ID=${CHAIN_ID:-testing} MONIKER=${MONIKER:-node001} KEYRING="--keyring-backend test" -BLOCK_GAS_LIMIT=100000000 # should mirror mainnet +BLOCK_GAS_LIMIT=${GAS_LIMIT:-100000000} # should mirror mainnet + +echo "Configured Block Gas Limit: $BLOCK_GAS_LIMIT" # check the genesis file GENESIS_FILE="$HOME"/.juno/config/genesis.json