mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Merge pull request #278 from mchangrh/ci-timeout
add 5 minute timeout to CI, added note in config
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/postgres-ci.yml
vendored
7
.github/workflows/postgres-ci.yml
vendored
@@ -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
|
||||||
@@ -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": [],
|
||||||
|
|||||||
Reference in New Issue
Block a user