From 2ef18c44b648ef65fe7fafd10ee7ad9980a5af96 Mon Sep 17 00:00:00 2001 From: Adam Fraser Date: Fri, 28 Jul 2023 09:36:24 +0100 Subject: [PATCH] Add Timeout (#2335) * add timeout * sbt github actions --- .github/workflows/ci.yml | 2 ++ build.sbt | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fea849517..c5dd3641ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,8 @@ jobs: scala: [2.12.18, 2.13.10, 3.3.0] java: [graal_21.1.0@11, temurin@8] runs-on: ${{ matrix.os }} + timeout-minutes: 60 + steps: - name: Checkout current branch (full) uses: actions/checkout@v3 diff --git a/build.sbt b/build.sbt index 688e306a48..fdb1da7f33 100644 --- a/build.sbt +++ b/build.sbt @@ -1,6 +1,7 @@ import BuildHelper._ import Dependencies._ import sbt.librarymanagement.ScalaArtifacts.isScala3 +import scala.concurrent.duration._ val releaseDrafterVersion = "5" @@ -100,6 +101,8 @@ inThisBuild( ), ) +ThisBuild / githubWorkflowBuildTimeout := Some(60.minutes) + lazy val root = (project in file(".")) .settings(stdSettings("zio-http-root")) .settings(publishSetting(false))