Browse Source

ci: add timeouts (#4912)

## 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
pull/4915/head
Marko 4 years ago
committed by GitHub
parent
commit
a27317dff0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions
  1. +1
    -0
      .github/workflows/lint.yaml
  2. +1
    -0
      .github/workflows/net.yml
  3. +2
    -0
      .github/workflows/proto.yml
  4. +4
    -0
      .github/workflows/tests.yml

+ 1
- 0
.github/workflows/lint.yaml View File

@ -11,6 +11,7 @@ jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1


+ 1
- 0
.github/workflows/net.yml View File

@ -15,6 +15,7 @@ on:
jobs:
net-short:
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- uses: actions/checkout@v2
- name: 10 Blocks


+ 2
- 0
.github/workflows/proto.yml View File

@ -8,12 +8,14 @@ on:
jobs:
proto-lint:
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- uses: actions/checkout@master
- name: lint
run: make proto-lint
proto-breakage:
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- uses: actions/checkout@master
- name: check-breakage


+ 4
- 0
.github/workflows/tests.yml View File

@ -21,6 +21,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
@ -47,6 +48,7 @@ jobs:
test_abci_apps:
runs-on: ubuntu-latest
needs: Build
timeout-minutes: 4
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
@ -73,6 +75,7 @@ jobs:
test_abci_cli:
runs-on: ubuntu-latest
needs: Build
timeout-minutes: 4
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
@ -98,6 +101,7 @@ jobs:
test_apps:
runs-on: ubuntu-latest
needs: Build
timeout-minutes: 4
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1


Loading…
Cancel
Save