ci: reduce CI timeout to 18 minutes (#1028)

* ci: reduce CI timeout to 15 minutes

* add additional timeouts

* go with 18 minutes for safety
This commit is contained in:
Clement Tsang 2023-02-21 04:09:19 -05:00 committed by GitHub
parent 78b1126fb4
commit 1ad38db3a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@ on:
- cron: "0 0 * * 1" - cron: "0 0 * * 1"
jobs: jobs:
audit: audit:
timeout-minutes: 18
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository

View File

@ -58,7 +58,7 @@ jobs:
needs: pre-job needs: pre-job
runs-on: ${{ matrix.info.os }} runs-on: ${{ matrix.info.os }}
if: ${{ needs.pre-job.outputs.should_skip != 'true' }} if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
timeout-minutes: 30 timeout-minutes: 18
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -136,7 +136,7 @@ jobs:
runs-on: ${{ matrix.info.os }} runs-on: ${{ matrix.info.os }}
if: ${{ needs.pre-job.outputs.should_skip != 'true' }} if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
continue-on-error: true continue-on-error: true
timeout-minutes: 30 timeout-minutes: 18
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:

View File

@ -34,6 +34,7 @@ jobs:
coverage: coverage:
needs: pre-job needs: pre-job
if: ${{ needs.pre-job.outputs.should_skip != 'true' }} if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
timeout-minutes: 18
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository