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
god-of-javascript and RobinMalfait committed Jun 27, 2023
1 parent e4af07f commit 6722e78
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 @@ -17,6 +17,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.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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.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 @@ -186,6 +188,7 @@ jobs:

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

Expand Down Expand Up @@ -262,6 +265,7 @@ jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Build and release
needs:
- build
Expand Down Expand Up @@ -353,6 +357,7 @@ jobs:

tailwind-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.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:

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

Expand Down Expand Up @@ -98,6 +99,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-release:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Build and release Tailwind CSS

needs:
Expand Down

0 comments on commit 6722e78

Please sign in to comment.