Merge pull request #3700 from cdr/jsjoeio-add-job-timeouts

fix: add timeouts to CI jobs
This commit is contained in:
Joe Previte 2021-07-01 09:59:52 -07:00 committed by GitHub
commit 4dcf3efeab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,9 @@ on:
jobs: jobs:
prebuild: prebuild:
name: Pre-build checks name: Pre-Build checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps: steps:
@ -65,6 +66,7 @@ jobs:
name: Run audit-ci name: Run audit-ci
needs: prebuild needs: prebuild
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -95,6 +97,7 @@ jobs:
name: Build name: Build
needs: prebuild needs: prebuild
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@ -170,6 +173,7 @@ jobs:
name: x86-64 Linux build name: x86-64 Linux build
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 15
container: "centos:7" container: "centos:7"
steps: steps:
@ -240,6 +244,7 @@ jobs:
name: Linux ARM64 cross-compile build name: Linux ARM64 cross-compile build
needs: build needs: build
runs-on: ubuntu-16.04 runs-on: ubuntu-16.04
timeout-minutes: 15
env: env:
AR: aarch64-linux-gnu-ar AR: aarch64-linux-gnu-ar
CC: aarch64-linux-gnu-gcc CC: aarch64-linux-gnu-gcc
@ -293,6 +298,7 @@ jobs:
name: x86-64 macOS build name: x86-64 macOS build
needs: build needs: build
runs-on: macos-latest runs-on: macos-latest
timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -333,6 +339,7 @@ jobs:
name: End-to-end tests name: End-to-end tests
needs: package-linux-amd64 needs: package-linux-amd64
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 15
env: env:
# Since we build code-server we might as well run tests from the release # Since we build code-server we might as well run tests from the release
# since VS Code will load faster due to the bundling. # since VS Code will load faster due to the bundling.