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
This commit is contained in:
Michael C
2021-06-29 16:03:40 -04:00
parent 6f18a49ba0
commit d710b88c3e
3 changed files with 4 additions and 5 deletions

View File

@@ -14,4 +14,5 @@ jobs:
- run: npm install
- name: Run Tests
timeout-minutes: 5
run: npm test

View File

@@ -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

View File

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