ci: set sensible timeouts on all gha jobs (#9683)

This commit is contained in:
Piotr Galar 2023-03-02 10:51:57 +01:00 committed by GitHub
parent 68f4dd4427
commit e1f38d7567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 15 additions and 0 deletions

View File

@ -14,6 +14,7 @@ jobs:
prepare:
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 5
env:
TEST_NO_DOCKER: 1
TEST_NO_FUSE: 1
@ -40,6 +41,7 @@ jobs:
ipfs-interop:
needs: [prepare]
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
suites:
@ -83,6 +85,7 @@ jobs:
go-ipfs-api:
needs: [prepare]
runs-on: ubuntu-latest
timeout-minutes: 5
env:
TEST_NO_DOCKER: 1
TEST_NO_FUSE: 1
@ -122,6 +125,7 @@ jobs:
go-ipfs-http-client:
needs: [prepare]
runs-on: ubuntu-latest
timeout-minutes: 5
env:
TEST_NO_DOCKER: 1
TEST_NO_FUSE: 1
@ -154,6 +158,7 @@ jobs:
ipfs-webui:
needs: [prepare]
runs-on: ubuntu-latest
timeout-minutes: 20
env:
NO_SANDBOX: true
LIBP2P_TCP_REUSEPORT: false

View File

@ -16,6 +16,7 @@ jobs:
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false

View File

@ -11,6 +11,7 @@ jobs:
docker-build:
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 10
env:
IMAGE_NAME: ipfs/kubo
WIP_IMAGE_TAG: wip

View File

@ -14,6 +14,7 @@ jobs:
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
timeout-minutes: 90
env:
IMAGE_NAME: ipfs/kubo
LEGACY_IMAGE_NAME: ipfs/go-ipfs

View File

@ -14,6 +14,7 @@ jobs:
gobuild:
needs: [runner]
runs-on: ${{ fromJSON(needs.runner.outputs.config).labels }}
timeout-minutes: 20
env:
TEST_NO_DOCKER: 1
TEST_VERBOSE: 1

View File

@ -11,6 +11,7 @@ jobs:
unit:
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 10
name: All
steps:
- uses: actions/checkout@v2

View File

@ -11,6 +11,7 @@ jobs:
golint:
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 10
env:
TEST_NO_DOCKER: 1
TEST_NO_FUSE: 1

View File

@ -11,6 +11,7 @@ jobs:
gotest:
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 20
env:
TEST_NO_DOCKER: 1
TEST_NO_FUSE: 1

View File

@ -10,6 +10,7 @@ on:
jobs:
choose:
runs-on: ubuntu-latest
timeout-minutes: 1
outputs:
config: ${{ steps.config.outputs.result }}
steps:

View File

@ -14,6 +14,7 @@ jobs:
sharness:
needs: [runner]
runs-on: ${{ fromJSON(needs.runner.outputs.config).labels }}
timeout-minutes: 20
defaults:
run:
shell: bash

View File

@ -13,6 +13,7 @@ jobs:
sync-github-and-dist-ipfs-tech:
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
runs-on: "ubuntu-latest"
timeout-minutes: 5
steps:
- uses: ipfs/download-ipfs-distribution-action@v1
- uses: ipfs/start-ipfs-daemon-action@v1