From b450f73051c0031c86d51c87573a97167a35c4b2 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 5 Oct 2023 15:23:00 +0200 Subject: [PATCH] Add job timeouts --- .github/workflows/build.yml | 2 ++ .github/workflows/prepare-release.yml | 4 ++++ .github/workflows/pull-request.yml | 1 + .github/workflows/release-published.yml | 1 + .github/workflows/update-changelog.yml | 1 + 5 files changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25a1d769..4935a448 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ jobs: integration-tests: name: Java ${{ matrix.java }}, MySQL ${{ matrix.mysql }}, MariaDB ${{ matrix.mariadb }} runs-on: ubuntu-latest + timeout-minutes: 60 strategy: matrix: java: [8, 11, 17] @@ -39,6 +40,7 @@ jobs: snapshot-deploy: name: Deploy Snapshot to Sonatype runs-on: ubuntu-latest + timeout-minutes: 60 if: ${{ github.repository == 'liquibase/liquibase-percona' && github.ref == 'refs/heads/main' }} needs: integration-tests steps: diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 24e2cd7d..22111388 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -12,6 +12,7 @@ jobs: setup: name: Prepare Versions and Create Tag runs-on: ubuntu-latest + timeout-minutes: 60 outputs: extensionVersion: ${{ steps.determine_version.outputs.extensionVersion }} liquibaseVersion: ${{ steps.determine_version.outputs.liquibaseVersion }} @@ -70,6 +71,7 @@ jobs: needs: setup name: "Build and Unit Test" runs-on: ubuntu-latest + timeout-minutes: 60 steps: - uses: actions/checkout@v4 with: @@ -106,6 +108,7 @@ jobs: needs: setup name: Java ${{ matrix.java }}, MySQL ${{ matrix.mysql }}, MariaDB ${{ matrix.mariadb }} runs-on: ubuntu-latest + timeout-minutes: 60 strategy: matrix: java: [8, 11, 17] @@ -141,6 +144,7 @@ jobs: draft-release: needs: [setup, build, integration-tests] runs-on: ubuntu-latest + timeout-minutes: 60 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e90b2585..6f2a48fc 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -13,6 +13,7 @@ jobs: integration-test: name: Java ${{ matrix.java }} runs-on: ubuntu-latest + timeout-minutes: 60 strategy: matrix: java: [8] diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml index d241e023..d9a8ab3d 100644 --- a/.github/workflows/release-published.yml +++ b/.github/workflows/release-published.yml @@ -7,6 +7,7 @@ on: jobs: release: runs-on: ubuntu-latest + timeout-minutes: 60 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index ce5f778c..f38f8f86 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -14,6 +14,7 @@ on: jobs: update-changelog: runs-on: ubuntu-latest + timeout-minutes: 60 steps: - uses: actions/checkout@v4