Skip to content

Commit

Permalink
github-actions: declare timeout for job execution (rectorphp#449)
Browse files Browse the repository at this point in the history
the default of 6h is way to long and produced a overlong queue in case of endless loop bugs

Co-authored-by: Markus Staab <[email protected]>
  • Loading branch information
staabm and clxmstaab authored Jul 16, 2021
1 parent 2a28758 commit e3f0952
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_scoped_rector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ env:
jobs:
build_scoped_rector:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
-
uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_scoped_rector_php70.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ env:
jobs:
build_scoped_rector_php70:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
-
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/code_analysis_no_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/packages_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
jobs:
packages_tests:
runs-on: ubuntu-latest
timeout-minutes: 30

strategy:
fail-fast: false
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/php_linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
jobs:
php_linter:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
- rules

runs-on: ubuntu-latest
timeout-minutes: 30

steps:
# workaround for missing secret in fork PRs - see https://github.com/actions/checkout/issues/298
# see https://github.com/rectorphp/rector/commit/d395e1c28b8e6a56711dcc2e10490a82965850e4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ env:
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/weekly_pull_requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
-
Expand Down

0 comments on commit e3f0952

Please sign in to comment.