Skip to content

Commit

Permalink
Ensure CI jobs don't run for longer than 15 minutes (#11496)
Browse files Browse the repository at this point in the history
* fix: prevent long unwanted runs!

* add timeout-minutes to all the workflows

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
  • Loading branch information
2 people authored and thecrypticace committed Jul 13, 2023
1 parent e88956d commit 43d36ca
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15

strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/integration-tests-oxide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15

strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
contents: write # for softprops/action-gh-release to create GitHub release

runs-on: macos-11
timeout-minutes: 15

strategy:
matrix:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-insiders-oxide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:

name: Build ${{ matrix.target }} (OXIDE)
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -96,6 +97,7 @@ jobs:
build-apple-silicon:
name: Build Apple Silicon (OXIDE)
runs-on: macos-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -188,6 +190,7 @@ jobs:

name: Build ${{ matrix.target }} (OXIDE)
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: ${{ matrix.image }}

Expand Down Expand Up @@ -264,6 +267,7 @@ jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Build and release
needs:
- build
Expand Down Expand Up @@ -355,6 +359,7 @@ jobs:

tailwind_oxide_release:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Build and release Tailwind CSS

needs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-oxide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:

name: Build ${{ matrix.target }} (OXIDE)
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
oxide-build-apple-silicon:
name: Build Apple Silicon (OXIDE)
runs-on: macos-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -156,6 +158,7 @@ jobs:

name: Build ${{ matrix.target }} (OXIDE)
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: ${{ matrix.image }}

Expand Down Expand Up @@ -213,6 +216,7 @@ jobs:
oxide-release:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Build and release
needs:
- oxide-build
Expand Down Expand Up @@ -285,6 +289,7 @@ jobs:

tailwind_oxide_release:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Build and release Tailwind CSS

needs:
Expand Down

0 comments on commit 43d36ca

Please sign in to comment.