Browse Source

ci: fix net pipeline (#5272)

pull/5275/head
Marko 4 years ago
committed by GitHub
parent
commit
8ca24e2f5a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions
  1. +6
    -5
      .github/workflows/net.yml
  2. +2
    -0
      DOCKER/README.md
  3. +1
    -1
      Makefile

+ 6
- 5
.github/workflows/net.yml View File

@ -3,10 +3,10 @@ name: Net
# This workflow is run on every pull request, if a *{.go, .mod, .sum} file has been modified, and push to master and release/** branches
on:
pull_request:
paths:
- "**.go"
- "**.mod"
- "**.sum"
paths:
- "**.go"
- "**.mod"
- "**.sum"
push:
branches:
- master
@ -15,7 +15,7 @@ on:
jobs:
net-short:
runs-on: ubuntu-latest
timeout-minutes: 4
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- name: 10 Blocks
@ -24,4 +24,5 @@ jobs:
docker run --rm -v "$PWD":/go/src/github.com/tendermint/tendermint -w /go/src/github.com/tendermint/tendermint golang make build-linux
make localnet-start &
./scripts/localnet-blocks-test.sh 40 5 10 localhost
# Decide if we want to run longer lived testnets

+ 2
- 0
DOCKER/README.md View File

@ -40,6 +40,8 @@ docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint node --proxy_app
To run a 4-node network, see the `Makefile` in the root of [the repo](https://github.com/tendermint/tendermint/blob/master/Makefile) and run:
```sh
make build-linux
make build-docker-localnode
make localnet-start
```


+ 1
- 1
Makefile View File

@ -216,7 +216,7 @@ build_c-amazonlinux:
.PHONY: build_c-amazonlinux
# Run a 4-node testnet locally
localnet-start: localnet-stop build-linux
localnet-start: localnet-stop build-docker-localnode
@if ! [ -f build/node0/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/tendermint:Z tendermint/localnode testnet --config /etc/tendermint/config-template.toml --o . --starting-ip-address 192.167.10.2; fi
docker-compose up
.PHONY: localnet-start


Loading…
Cancel
Save