Skip to content

Commit

Permalink
actions: Add timeouts to GitHub actions (#738)
Browse files Browse the repository at this point in the history
In order to prevent runaway tests from consuming actions resources, we
set reasonable default timeouts for each job. This replaces the default
6 hour(!) timeout.
  • Loading branch information
olix0r authored Nov 13, 2020
1 parent f40ce70 commit 1df1f18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:

jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
strip: arm-linux-gnueabihf-strip
name: Package (${{ matrix.architecture }})
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- name: git co
uses: actions/checkout@v1
Expand Down Expand Up @@ -61,6 +62,7 @@ jobs:
needs: [package]
name: GitHub Release
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: git co
uses: actions/checkout@v1
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
fmt:
timeout-minutes: 5
runs-on: ubuntu-18.04
container:
image: docker://rust:1.47.0-buster
Expand All @@ -17,6 +18,7 @@ jobs:
- run: make check-fmt

check:
timeout-minutes: 5
runs-on: ubuntu-18.04
container:
image: docker://rust:1.47.0-buster
Expand All @@ -25,6 +27,7 @@ jobs:
- run: make check

test:
timeout-minutes: 15
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
Expand Down

0 comments on commit 1df1f18

Please sign in to comment.