Skip to content

Commit

Permalink
feat(CI): add timeout to CI (#4728)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored Sep 22, 2023
1 parent 995986e commit 64aba9c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
test:
runs-on: ubuntu-20.04
name: test
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
Expand All @@ -32,6 +33,7 @@ jobs:
lint:
runs-on: ubuntu-20.04
name: lint
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
Expand All @@ -49,6 +51,7 @@ jobs:

build:
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -120,6 +123,8 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

timeout-minutes: 60

steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
lint:
name: code lint
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand Down Expand Up @@ -49,6 +50,7 @@ jobs:
doc-lint:
name: doc lint
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Install toolchain
Expand All @@ -60,6 +62,7 @@ jobs:
grafana-lint:
name: grafana lint
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Check dashboard JSON with jq
Expand All @@ -72,6 +75,7 @@ jobs:
name: lint success
runs-on: ubuntu-20.04
needs: [lint, doc-lint, grafana-lint]
timeout-minutes: 60
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
strategy:
matrix:
partition: [1, 2]
timeout-minutes: 60
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand Down Expand Up @@ -71,6 +72,7 @@ jobs:
group: Reth
env:
RUST_LOG: info,sync=error
timeout-minutes: 60
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand Down Expand Up @@ -99,6 +101,7 @@ jobs:
runs-on:
group: Reth
needs: [test]
timeout-minutes: 60
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
strategy:
matrix:
partition: [1, 2]
timeout-minutes: 60
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand Down Expand Up @@ -57,6 +58,7 @@ jobs:
group: Reth
env:
RUST_LOG: info,sync=error
timeout-minutes: 60
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand Down Expand Up @@ -88,6 +90,7 @@ jobs:
name: rustdoc
runs-on:
group: Reth
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Install toolchain
Expand All @@ -101,6 +104,7 @@ jobs:
name: unit success
runs-on: ubuntu-20.04
needs: [test, eth-blockchain, doc-test]
timeout-minutes: 60
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
Expand Down

0 comments on commit 64aba9c

Please sign in to comment.