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": [],