Skip to content

Commit

Permalink
tooling: run a contract deployment inside github actions, tag prs wit…
Browse files Browse the repository at this point in the history
…h rolling tag pr-latest
  • Loading branch information
the-frey committed Dec 22, 2021
1 parent 330d6e5 commit ee01248
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ services:
ports:
- 1317:1317 # rest
- 26656:26656 # p2p
- 26657:26657 # rpc
- 26657:26657 # rpc
environment:
- GAS_LIMIT=${GAS_LIMIT:-100000000}
- STAKE_TOKEN=${STAKE_TOKEN:-ustake}
4 changes: 3 additions & 1 deletion docker/setup_junod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee01248

Please sign in to comment.