mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(CI): add timeout to CI (#4728)
This commit is contained in:
5
.github/workflows/book.yml
vendored
5
.github/workflows/book.yml
vendored
@ -10,6 +10,7 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-20.04
|
||||
name: test
|
||||
timeout-minutes: 60
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -32,6 +33,7 @@ jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-20.04
|
||||
name: lint
|
||||
timeout-minutes: 60
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -49,6 +51,7 @@ jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@ -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
|
||||
|
||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
|
||||
3
.github/workflows/integration.yml
vendored
3
.github/workflows/integration.yml
vendored
@ -22,6 +22,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
partition: [1, 2]
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v3
|
||||
@ -71,6 +72,7 @@ jobs:
|
||||
group: Reth
|
||||
env:
|
||||
RUST_LOG: info,sync=error
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v3
|
||||
@ -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
|
||||
|
||||
4
.github/workflows/unit.yml
vendored
4
.github/workflows/unit.yml
vendored
@ -21,6 +21,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
partition: [1, 2]
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v3
|
||||
@ -57,6 +58,7 @@ jobs:
|
||||
group: Reth
|
||||
env:
|
||||
RUST_LOG: info,sync=error
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v3
|
||||
@ -88,6 +90,7 @@ jobs:
|
||||
name: rustdoc
|
||||
runs-on:
|
||||
group: Reth
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install toolchain
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user