Add timeouts to our GitHub actions. (#4669)

6 hours is way too long and eats up the runners.
This commit is contained in:
Doug
2025-10-28 18:37:15 +00:00
committed by GitHub
parent dd5a0bb409
commit 9cd181ef74
9 changed files with 11 additions and 0 deletions
@@ -10,6 +10,7 @@ jobs:
tests: tests:
name: Tests name: Tests
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 120
concurrency: concurrency:
# Only allow a single run of this workflow on each branch, automatically cancelling older runs. # Only allow a single run of this workflow on each branch, automatically cancelling older runs.
@@ -12,6 +12,8 @@ on:
jobs: jobs:
automatic-calendar-version: automatic-calendar-version:
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 15
# Skip in forks # Skip in forks
if: github.repository == 'element-hq/element-x-ios' if: github.repository == 'element-hq/element-x-ios'
steps: steps:
+1
View File
@@ -15,6 +15,7 @@ jobs:
tests: tests:
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 15
concurrency: concurrency:
# When running on develop, use the sha to allow all runs of this workflow to run concurrently. # When running on develop, use the sha to allow all runs of this workflow to run concurrently.
+1
View File
@@ -8,6 +8,7 @@ jobs:
build: build:
name: Danger name: Danger
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 15
concurrency: concurrency:
# Only allow a single run of this workflow on each branch, automatically cancelling older runs. # Only allow a single run of this workflow on each branch, automatically cancelling older runs.
+1
View File
@@ -10,6 +10,7 @@ jobs:
integration_tests: integration_tests:
name: Integration Tests name: Integration Tests
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 45
concurrency: concurrency:
# Only allow a single run of this workflow on each branch, automatically cancelling older runs. # Only allow a single run of this workflow on each branch, automatically cancelling older runs.
+2
View File
@@ -8,6 +8,8 @@ on:
jobs: jobs:
open-translations-pr: open-translations-pr:
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 15
# Skip in forks # Skip in forks
if: github.repository == 'element-hq/element-x-ios' if: github.repository == 'element-hq/element-x-ios'
steps: steps:
+1
View File
@@ -14,6 +14,7 @@ jobs:
tests: tests:
name: Tests name: Tests
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 90
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
+1
View File
@@ -12,6 +12,7 @@ jobs:
tests: tests:
name: Tests name: Tests
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 60
concurrency: concurrency:
# Only allow a single run of this workflow on each branch, automatically cancelling older runs. # Only allow a single run of this workflow on each branch, automatically cancelling older runs.
@@ -12,6 +12,7 @@ jobs:
tests: tests:
name: Tests (Enterprise) name: Tests (Enterprise)
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 45
# Skip in forks # Skip in forks
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}