Timeout CI after 45 minutes
Apparently, the Emulator job sometimes hangs and then uses CPU resources for the default timeout of 6 hours. This changes the timeout to 45 minutes.
This commit is contained in:
parent
310eccc4ce
commit
70b6f5d017
|
@ -10,6 +10,7 @@ jobs:
|
||||||
code-style:
|
code-style:
|
||||||
name: "Code Style"
|
name: "Code Style"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -37,6 +38,7 @@ jobs:
|
||||||
name: "Gradle Wrapper Validation"
|
name: "Gradle Wrapper Validation"
|
||||||
needs: code-style
|
needs: code-style
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: gradle/wrapper-validation-action@v1
|
- uses: gradle/wrapper-validation-action@v1
|
||||||
|
@ -45,6 +47,7 @@ jobs:
|
||||||
name: "Static Code Analysis"
|
name: "Static Code Analysis"
|
||||||
needs: code-style
|
needs: code-style
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Cache Gradle
|
- name: Cache Gradle
|
||||||
|
@ -63,6 +66,7 @@ jobs:
|
||||||
name: "Unit Test: ${{ matrix.variant }}"
|
name: "Unit Test: ${{ matrix.variant }}"
|
||||||
needs: code-style
|
needs: code-style
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 45
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
@ -104,6 +108,7 @@ jobs:
|
||||||
name: "Emulator Test"
|
name: "Emulator Test"
|
||||||
needs: code-style
|
needs: code-style
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
|
timeout-minutes: 45
|
||||||
env:
|
env:
|
||||||
api-level: 27
|
api-level: 27
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in New Issue