From d710b88c3e32a4ad32e5a177571445fa7ba9a411 Mon Sep 17 00:00:00 2001 From: Michael C Date: Tue, 29 Jun 2021 16:03:40 -0400 Subject: [PATCH] add 5 minute timeout to CI, added note in config - added note in config to use enable_offline_queue to avoid timeouts - removed wait action from CI --- .github/workflows/ci.yml | 1 + .github/workflows/postgres-ci.yml | 7 ++----- config.json.example | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0973f23..2281377 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,4 +14,5 @@ jobs: - run: npm install - name: Run Tests + timeout-minutes: 5 run: npm test diff --git a/.github/workflows/postgres-ci.yml b/.github/workflows/postgres-ci.yml index 66804f1..4a072e0 100644 --- a/.github/workflows/postgres-ci.yml +++ b/.github/workflows/postgres-ci.yml @@ -14,15 +14,12 @@ jobs: PG_USER: ci_db_user PG_PASS: ci_db_pass run: docker-compose -f docker/docker-compose-ci.yml up -d - - name: Sleep - uses: jakejarvis/wait-action@master - with: - time: '10s' - name: Check running containers run: docker ps - uses: actions/setup-node@v1 - run: npm install - - name: Run test suite + - name: Run Tests env: TEST_POSTGRES: true + timeout-minutes: 5 run: npm test \ No newline at end of file diff --git a/config.json.example b/config.json.example index 1934a98..8a94d22 100644 --- a/config.json.example +++ b/config.json.example @@ -19,6 +19,7 @@ "schemaFolder": "./databases", "dbSchema": "./databases/_sponsorTimes.db.sql", "privateDBSchema": "./databases/_private.db.sql", + // when using redis, add `"enable_offline_queue": false` to force commands to fail instead of timing out "mode": "development", "readOnly": false, "webhooks": [],