Merge pull request #278 from mchangrh/ci-timeout

add 5 minute timeout to CI, added note in config
This commit is contained in:
Ajay Ramachandran
2021-06-29 16:26:21 -04:00
committed by GitHub
3 changed files with 4 additions and 5 deletions

View File

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

View File

@@ -14,15 +14,12 @@ jobs:
PG_USER: ci_db_user PG_USER: ci_db_user
PG_PASS: ci_db_pass PG_PASS: ci_db_pass
run: docker-compose -f docker/docker-compose-ci.yml up -d 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 - name: Check running containers
run: docker ps run: docker ps
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
- run: npm install - run: npm install
- name: Run test suite - name: Run Tests
env: env:
TEST_POSTGRES: true TEST_POSTGRES: true
timeout-minutes: 5
run: npm test run: npm test

View File

@@ -19,6 +19,7 @@
"schemaFolder": "./databases", "schemaFolder": "./databases",
"dbSchema": "./databases/_sponsorTimes.db.sql", "dbSchema": "./databases/_sponsorTimes.db.sql",
"privateDBSchema": "./databases/_private.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", "mode": "development",
"readOnly": false, "readOnly": false,
"webhooks": [], "webhooks": [],