From 05fd419729e43e530706c1ed3d812ad1c314c5a9 Mon Sep 17 00:00:00 2001 From: Junyi Date: Tue, 18 Apr 2023 21:00:02 +0700 Subject: [PATCH] chore(ci): add timeout config for jobs (#1725) --- .github/workflows/nocobase-test-full.yml | 4 ++++ .github/workflows/nocobase-test-lite.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/nocobase-test-full.yml b/.github/workflows/nocobase-test-full.yml index da7803c07..c77ce211f 100644 --- a/.github/workflows/nocobase-test-full.yml +++ b/.github/workflows/nocobase-test-full.yml @@ -35,6 +35,7 @@ jobs: cache: 'yarn' - run: yarn install - run: yarn build + timeout-minutes: 15 sqlite-test: strategy: @@ -57,6 +58,7 @@ jobs: DB_DIALECT: sqlite DB_STORAGE: /tmp/db.sqlite DB_UNDERSCORED: ${{ matrix.underscored }} + timeout-minutes: 30 postgres-test: strategy: @@ -103,6 +105,7 @@ jobs: DB_UNDERSCORED: ${{ matrix.underscored }} DB_SCHEMA: ${{ matrix.schema }} COLLECTION_MANAGER_SCHEMA: ${{ matrix.collection_schema }} + timeout-minutes: 30 mysql-test: strategy: @@ -137,3 +140,4 @@ jobs: DB_PASSWORD: password DB_DATABASE: nocobase DB_UNDERSCORED: ${{ matrix.underscored }} + timeout-minutes: 30 diff --git a/.github/workflows/nocobase-test-lite.yml b/.github/workflows/nocobase-test-lite.yml index 0f2a26294..5aeb2e97d 100644 --- a/.github/workflows/nocobase-test-lite.yml +++ b/.github/workflows/nocobase-test-lite.yml @@ -37,6 +37,7 @@ jobs: cache: 'yarn' - run: yarn install - run: yarn build + timeout-minutes: 15 postgres-test: strategy: @@ -80,3 +81,4 @@ jobs: DB_UNDERSCORED: true DB_SCHEMA: nocobase COLLECTION_MANAGER_SCHEMA: user_schema + timeout-minutes: 30