mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 06:15:33 +00:00
## Description Add Timeouts to Github action jobs. The goal of adding timeouts is so if a job is hanging on something it gets killed and the author will get notified. I picked these times based on previous circle and Github action times then doubled & in some places tripled the times. Closes: #XXX
28 lines
799 B
YAML
28 lines
799 B
YAML
name: Net
|
|
# Net creates a 4 node test network with docker-compose
|
|
# 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"
|
|
push:
|
|
branches:
|
|
- master
|
|
- release/**
|
|
|
|
jobs:
|
|
net-short:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 4
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: 10 Blocks
|
|
run: |
|
|
set -x
|
|
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
|