Skip to content

Commit

Permalink
Add timeouts for CI jobs (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev authored Oct 28, 2022
1 parent fcc825b commit f10bf4c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/binary-combine-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
build-android-combined:
name: Combine Android binaries
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Fetch x86 build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/binary-combine-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
build-ios-xcframework:
name: Combine .xcframework
timeout-minutes: 15
runs-on: macos-latest

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
build-native:
runs-on: ${{ inputs.runner }}-latest
name: Build native
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:

jobs:
changelog:
name: Check Changelog
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
deploy-cluster:
runs-on: ubuntu-latest
name: Deploy Cluster
timeout-minutes: 15
outputs:
clusterName: ${{ steps.cluster-name.outputs.clusterName }}
steps:
Expand All @@ -40,6 +41,7 @@ jobs:
delete-cluster:
runs-on: ubuntu-latest
name: Delete Cluster
timeout-minutes: 5
continue-on-error: true
needs:
- deploy-cluster
Expand All @@ -62,7 +64,6 @@ jobs:
privateApiKey: ${{ env.BAAS_PRIVATE_API_KEY }}
clusterName: ${{ needs.deploy-cluster.outputs.clusterName }}


cleanup-matrix:
needs:
- deploy-cluster
Expand Down Expand Up @@ -267,6 +268,7 @@ jobs:
flutter-ios:
runs-on: macos-latest
name: IOS Flutter Tests
timeout-minutes: 45
env:
BAAS_CLUSTER: ${{ needs.deploy-cluster.outputs.clusterName }}
BAAS_DIFFERENTIATOR: fi${{ github.run_id }}${{ github.run_attempt }}
Expand Down Expand Up @@ -325,6 +327,7 @@ jobs:
flutter-android:
runs-on: macos-latest
name: Android Flutter Tests
timeout-minutes: 45
env:
BAAS_CLUSTER: ${{ needs.deploy-cluster.outputs.clusterName }}
BAAS_DIFFERENTIATOR: fa${{ github.run_id }}${{ github.run_attempt }}
Expand Down Expand Up @@ -411,6 +414,7 @@ jobs:

runs-on: ${{ matrix.os }}-latest
name: Generator Tests
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dart-desktop-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
dart-tests:
runs-on: ${{ inputs.os == 'linux' && 'ubuntu' || inputs.os }}-${{ inputs.architecture || 'latest' }}
name: Dart tests on ${{inputs.os }} ${{ inputs.architecture }}
timeout-minutes: 45
env:
BAAS_CLUSTER: ${{ inputs.cluster }}
BAAS_DIFFERENTIATOR: ${{ inputs.app }}${{ github.run_id }}${{ github.run_attempt }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/flutter-desktop-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
flutter-tests:
runs-on: ${{ inputs.os == 'linux' && 'ubuntu' || inputs.os }}-latest
name: Flutter tests on ${{inputs.os }}
timeout-minutes: 45
env:
BAAS_CLUSTER: ${{ inputs.cluster }}
BAAS_DIFFERENTIATOR: ${{ inputs.app }}${{ github.run_id }}${{ github.run_attempt }}
Expand Down

0 comments on commit f10bf4c

Please sign in to comment.